Ant task |
From JAXXWiki
The <jaxxc> Ant task provides support for running jaxxc from within Ant. To use it, you must first define the task so that Ant knows how to invoke it:
<taskdef name="jaxxc" classname="jaxx.JaxxcAntTask" classpath="lib/jaxxc.jar"/>
Be sure to replace "lib/jaxxc.jar" with whatever path is appropriate for your build environment. Once the task is defined, using <jaxxc> is very similar to using <javac>. It supports the following attributes:
| Attribute | Description | Required |
|---|---|---|
| srcDir | Directory containing JAXX files to be compiled. As is typical for jaxxc, classes will be named implicitly based on their locations under this directory. JAXX files which appear within srcDir itself will not have a package name, and JAXX files in subdirectories of srcDir will have package names based on their paths relative to srcDir. | Yes |
| destDir | Target directory for compiled classes and Java files. The directory structure under destDir will mirror the directory structure under srcDir. | No |
| classPath | Class path to use during compilation. | No |
| keepJavaFiles | Indicates whether jaxxc should preserve the intermediate .java files it generates during compilation. Defaults to false. | No |
| optimize | Indicates whether jaxxc should perform optimizations during compilation. Defaults to false. | No |
| runJavac | Indicates whether javac should be invoked on the intermediate .java files after they have been produced. Defaults to true. | No |
| javacOptions | Extra parameters to be passed into javac during compilation. | No |
For an example of <jaxxc> usage, see the build.xml file included with the JAXX source code.

