在构建样本gcm-demo-appengine时无法找到ant-macros.xml

时间:2014-02-10 20:02:52

标签: google-app-engine ant google-cloud-messaging

当尝试构建样本gcm-demo-appengine时,我收到此错误。

vihaan@cd:~/sourceCode/gcm/samples/gcm-demo-appengine$ ant -Dsdk.dir=/home/vihaan/Downloads/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.8.9 runserver
Buildfile: /home/vihaan/sourceCode/gcm/samples/gcm-demo-appengine/build.xml

BUILD FAILED
/home/vihaan/sourceCode/gcm/samples/gcm-demo-appengine/build.xml:27: Cannot find /home/vihaan/Downloads/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.8.9/config/user/ant-macros.xml imported from /home/vihaan/sourceCode/gcm/samples/gcm-demo-appengine/build.xml

Total time: 0 seconds

我检查过sdk.dir,即/home/vihaan/Downloads/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.8.9并且没有配置文件夹和ant-macros.xml文件。我如何以及从何处获取ant-macros.xml文件?

1 个答案:

答案 0 :(得分:1)

https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Java,zip文件包含运行它所需的文件。不知道eclipse gae插件有什么问题。