Ant Integration

Build Configuration

The shown apt target compiles all .java files in the ${src.dir} directory into the ${build.dir} directory.

The generated ActionScript source code will be placed in the ${generated.dir} directory, using the class de.aixcept.flex2.annotations.apt.ActionScriptAnnotationProcessorFactory to supply AnnotationProcessor instances.

Additionally, the apt target's classpath includes mydependency.jar, and compiling with debug information is turned on.

Adjust the factorypathref reference to tell apt where to find the classes needed by the specified AnnotationProcessorFactory (and the location of the factory itself).

This represents the -factorypath flag on the Apt executable.

You need to download the latest flex-annotations-1.1.0.jar first.

    <apt srcdir="${src.dir}"
         destdir="${build.dir}"
         classpath="mydependency.jar"
         debug="on"
         compile="false"
         factory="de.aixcept.flex2.annotations.apt.ActionScriptAnnotationProcessorFactory"
         factorypathref="factorypath.id"
         preprocessdir="${generated.dir}">
    </apt>