users@jaxb.java.net

Re: XJC : Issues upgrading from v2.0 to 2.1....

From: news <news_at_hierlmeier.de>
Date: Thu, 10 May 2007 07:39:49 +0200

Hi Andrew,

I had the same problem. The attributes of the xjc target has been changed.
The target attribute specifies new the jaxb version (1.0 or 2.0).
The old target attribute has been renamed into destdir.

     <target name="jaxb.bind" depends="prepare">
         <xjc destdir="${jaxb.build.dir}"
              target="2.0"
             <binding dir="src/xjb/" includes="**/*.xjb"/>
             <schema dir="src/xsd/">
                 <include name="**/*.xsd"/>
                 <exclude name="**/debug.xsd"/>
                 <exclude name="Services.xsd"/>
             </schema>
             <arg value="-verbose" />
         </xjc>
     </target>

Richard

Andrew Hughes wrote:
> Hi All,
>
> I've upgraded from jaxb-ri-20060426 (v2.0) to jaxb-ri-20070413 (v2.1)...
> and my XJC Ant task is now giving me a trivial error message.
>
> Error Message:
> --------------------------------------
> jaxb.bind:
>
> BUILD FAILED
> C:\Sandbox\eclipseWTPv153\MyProject\build.xml:152: build/jaxb is not a
> valid version number. Perhaps you meant @destdir?
>
>
> Ant Target (build.xml):
> --------------------------------------
> <target name="jaxb.bind" depends="prepare">
> <xjc target="${jaxb.build.dir}">
> <binding dir="src/xjb/" includes="**/*.xjb"/>
> <schema dir="src/xsd/">
> <include name="**/*.xsd"/>
> <exclude name="**/debug.xsd"/>
> <exclude name="Services.xsd"/>
> </schema>
> <arg value="-verbose" />
> </xjc>
> </target>
>
>
>
> It doesn't look like there is anything mandatory missing from what I am
> doing (https://jaxb.dev.java.net/2.1.2/docs/xjcTask.html).... so I'm a
> little in the dark.
>
> Any help would be much appreciated.
>
> --AH
>
>
> p.s. other than backward compatibility, is jaxb1-impl.jar required for
> any other purpose?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>