We've just introduced datastore callbacks into our app and they work fine in Eclipse but I can't figure out how to compile the app with them in Ant. This is my target:
<target name="javac" depends="clean,libs" description="Compile java source">
<mkdir dir="war/WEB-INF/classes" />
<javac srcdir="src" includes="**" encoding="utf-8" destdir="war/WEB-INF/classes" source="1.6" target="1.6" nowarn="true" debug="true" debuglevel="lines,vars,source">
<classpath refid="project.class.path" />
<compilerarg line="-processorpath ${appengine.folder}/lib/impl/appengine-api.jar" />
<compilerarg line="-s .apt_generated" />
</javac>
<copy todir="war/WEB-INF/classes">
<fileset dir="src" excludes="**/*.java" />
</copy>
</target>
The error I get is:
[javac] Caused by: java.io.FileNotFoundException: Resource does not exist : CLASS_OUTPUT//META-INF\datastorecallbacks.xml
[javac] at org.eclipse.jdt.internal.compiler.apt.dispatch.BatchFilerImpl.getResource(BatchFilerImpl.java:158)
NOTE: We're using the eclipse internal compiler through ant because our app makes use of a feature that requires some later version of Java. But we ran into
this issue with the timezone and the indicated fix *really* messed up our UI tests. (It's a scheduling application so mucking with the timezone introduced some weird test failures.)