users@jaxb.java.net

Re: simple question

From: jason white <jason_white_01_at_hotmail.com>
Date: Fri, 17 Mar 2006 19:18:45 +0000

Here is the ant task that I used in reference to the below comment:
<taskdef name="xjc" classpathref="classpath"
classname="com.sun.tools.xjc.XJCTask">

        </taskdef>

        <xjc> <!-- schema="decodes.xsd" package="com.hb.datahub.api.spoke.aa"
destdir="gen-src">
                    <produces dir="gen-src/com.hb.datahub.api.spoke.aa"
includes="**/*.java" />
                -->
                        <arg value="-Xhibernate" />
        </xjc>

----------------------------------------------------------------

After not being able to get the command line to run correctly I also tried
calling my plugin from an ant task in another project....

Here are the errors:

xjc:
     [xjc] failure in the XJC task. Use the Ant -verbose switch for more
details

BUILD FAILED
C:\Projects\eclipse\datahub\src\com\hb\datahub\build.xml:31: The following
error occurred while executing this line:
C:\Projects\eclipse\datahub\build.xml:142: unrecognized parameter
-Xhibernate


jar file attached.

-jason