users@jaxb.java.net

RE: Re: xjc ant task error "is not a valid version number" error

From: Dovholuk, Clint <Clint.Dovholuk_at_GlobalCrossing.com>
Date: Fri, 17 Nov 2006 11:37:58 -0500

has that changed? this task works with 2.0 but not with 2.1 ea3 ..

sorry i totally left out the idea that i've recently upgraded...

cwd

-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Friday, November 17, 2006 11:30 AM
To: users_at_jaxb.dev.java.net
Subject: Re: xjc ant task error "is not a valid version number" error

Dovholuk, Clint wrote:
> I just joined the mailing list so forgive me if this issue has been
> covered (a google search and searching
> https://jaxb.dev.java.net/servlets/SearchList?listName=users and
> https://jaxb.dev.java.net/servlets/SearchList?listName=issues)
> produced no help...
>
> I'm trying to run xjc similar to:
>
> <xjc package="some.pkg" removeOldOutput="true" target="c:\test">
> <schema file="${basedir}/wsdls/dependant.xsd" />
> <depends file="${basedir}/wsdls/Base.xsd" />
> <produces dir="${basedir}/generated/some/pkg"
includes="**/*"
> />
> </xjc>
>
> And when this runs I get the following error:
>
> Buildfile: c:\test\build.xml
> generate-jaxb:
> [echo] Generating java files using JAXB
>
> BUILD FAILED
> c:\test\build.xml:1253: c:\test is not a valid version number
>
> Total time: 7 seconds
>
> Any thoughts on what's happening here?

See https://jaxb.dev.java.net/nonav/2.0.4/docs/xjcTask.html
I think you mean "destdir", not "target".

--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com