Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 使用Ant编译具有数据存储回调的AppEngine项目_Google App Engine_Ant_Google Cloud Datastore_Annotation Processing - Fatal编程技术网

Google app engine 使用Ant编译具有数据存储回调的AppEngine项目

Google app engine 使用Ant编译具有数据存储回调的AppEngine项目,google-app-engine,ant,google-cloud-datastore,annotation-processing,Google App Engine,Ant,Google Cloud Datastore,Annotation Processing,我已经在AppEngine项目中实现了它,并在Eclipse中进行了设置,如链接中所示 现在我很难在Ant中编译它。下面是我现在为javac目标所做的: <path id="appengine.api.path"> <pathelement location="${appengine.folder}/lib/impl/appengine-api.jar" /> </path> <target name="javac" depends="clea

我已经在AppEngine项目中实现了它,并在Eclipse中进行了设置,如链接中所示

现在我很难在Ant中编译它。下面是我现在为javac目标所做的:

<path id="appengine.api.path">
    <pathelement location="${appengine.folder}/lib/impl/appengine-api.jar" />
</path>

<target name="javac" depends="clean,libs" description="Compile java source">
    <mkdir dir="war/WEB-INF/classes" />
    <apt compile="false" preprocessdir=".apt_build_generated" destdir="war/WEB-INF/classes"
        srcdir="src"
        factorypathref="appengine.api.path"
        >
    </apt>
    <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" />
    </javac>
    <copy todir="war/WEB-INF/classes">
        <fileset dir="src" excludes="**/*.java" />
    </copy>

</target>

apt任务运行,但它所做的只是列出一组没有处理器的注释,包括预输出注释


我已尝试将factorypathref设置为${appengine.folder}/lib/impl/appengine-api.jar,但它表示找不到appengine-api.jar引用(我已验证路径存在)。我还查看了jar文件,看看是否可以找到它用作工厂的类,但还没有找到。

最终发现了问题。出于其他原因,我们在Ant构建中使用Eclipse编译器。当我们切换回内置Java编译器时,注释处理器开始正常工作