Java Reference
In-Depth Information
Finally, invoke XJC as just shown. Or, if you are using Ant, invoke it as usual but make two
modifications. First, you need to define your XJC task as using the plug-in. Second, pass the
plug-in's argument to the XJC tasks on invocation:
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
<classpath>
<pathelement path="/path/jaxb-xjc.jar"/>
<pathelement path="/path/plugin.jar" />
</classpath>
</taskdef>
...
<xjc ...>
<arg value="-Xinject-listener-code" />
</xjc>
Search WWH ::




Custom Search