users@jaxb.java.net

Re: schemagen ant task example is broken?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 01 Mar 2007 09:49:40 -0800

You are refering to the EA documentation, which is old and probably not
matching what you are using.

For example, 2.0.5 documentation says <src>
(https://jaxb.dev.java.net/nonav/2.0.5/docs/schemagenTask.html) so I
guess we must have changed it somewhere between EA and final.


jeff wrote:
> hi, when i try to apply this example:
>
>
> <schemagen destdir="build/schemas">
> <source dir="src" includes="org/acme/foo/**/*.java"/>
> <schema namespace="http://foo.org/" file="foo.xsd" />
> <schema namespace="" file="bar.xsd" />
> </xjc>
>
> from this page:
>
> https://jaxb.dev.java.net/jaxb20-ea/docs/schemagenTask.html
>
> i get:
>
> [INFO]/Users/jtb/src/pom/build.xml:15: The <schemagen> type doesn't support the nested "source" element.
>
> any ideas?
> thanks.
>
>
>
>
>
>
> ---------------------------------
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com