Ant + AndroidAnnotations

<?xml version="1.0" encoding="UTF-8"?>
<project>

    <property name="annotationprocessor.path" value="apt/androidannotations-X.Y.jar" />
    <property name="gen.dir" value="aptgen" />
    <property name="java.compilerargs" value="-s &apos;${gen.dir}&apos; -processorpath &apos;${annotationprocessor.path}&apos;" />

    <target name="-pre-compile">
        <mkdir dir="${gen.dir}" />
    </target>

    <target name="-pre-clean">
        <delete dir="${gen.dir}" verbose="${verbose}" />
    </target>

</project>