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 16:18:34 -0500

well i don't know why target USED to work, but it's definitely a
breaking change, but i think it's a 'sane' breaking change...

thanks for the help, i've switched to destdir
cwd

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

Dovholuk, Clint wrote:
> 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...

I actually thought it was destdir for a long time. But sounds like this
was indeed a breaking change.

I guess I'm bit torn on this. The @target attribute is really the right
name, and consistent with JAX-WS, etc.

Perhaps I can improve the error message? Or is the compatibility matters
enough that I should look for new attribute name for "target"?

But then, that would cause another kind of (although to a lesser degree)
compatibility issue, for those who are already using @target.

Argh.


> -----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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>


--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com