使用Gradle且gradle-gae-plugin调试参数未传递
我正在使用 gradle 来构建、运行、部署我的 Google App Engine 项目。 gradle-gae-plugin(版本 0.4)似乎可以完美地工作,但需要注意一点。在 gaeRun 期间,调试参数永远不会传递到本地运行的引擎。
我更改了 http 端口,因此我看到至少有一个参数生效。但是,我的 IDE 在默认 8000 调试端口上被拒绝,并且 netstat 在 8000 上没有显示任何监听。
这是我的 build.gradle 中的 gae 闭包:
gae { httpPort = 8888 debug = true debugPort = 8000 }
以及来自 gradle-gae-plugin 的 GaeRunTask.groovy 的信息日志语句
[INFO] [org.gradle.api.plugins.gae.task.GaeRunTask] Using params = [com.google.appengine.tools.development.DevAppServerMain, --port=8888, /[project-dir]/war/build/exploded-war]
梯度版本
------------------------------------------------------------ Gradle 1.0-milestone-3 ------------------------------------------------------------ Gradle build time: Monday, 25 April 2011 5:40:11 PM EST Groovy: 1.7.10 Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.6.0_23 (Sun Microsystems Inc. 19.0-b09) OS: Linux 2.6.38-8-generic amd64
I'm using gradle to build, run, deploy my Google App Engine project. The gradle-gae-plugin (version 0.4) seems to work perfect with one caveat. The debug parameters are never passed to the local running engine during gaeRun.
I've changed the http port, so I see at least one parameter taking effect. However, my IDE is rejected on the default 8000 debug port, and netstat shows nothing listening on 8000.
Here is the gae closure from my build.gradle:
gae { httpPort = 8888 debug = true debugPort = 8000 }
And the informational log statement coming out of GaeRunTask.groovy of the gradle-gae-plugin
[INFO] [org.gradle.api.plugins.gae.task.GaeRunTask] Using params = [com.google.appengine.tools.development.DevAppServerMain, --port=8888, /[project-dir]/war/build/exploded-war]
gradle version
------------------------------------------------------------ Gradle 1.0-milestone-3 ------------------------------------------------------------ Gradle build time: Monday, 25 April 2011 5:40:11 PM EST Groovy: 1.7.10 Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.6.0_23 (Sun Microsystems Inc. 19.0-b09) OS: Linux 2.6.38-8-generic amd64
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为 0.4 版本还不支持调试标志。我目前正在开发 0.5 版本,并且已经检查了 master 上 README.md 文件的更改。请参阅标签 v0.4 了解版本中可用的约定属性0.4。我可能会在接下来的一周内推送下一个版本。一旦我这样做,我就会通知你。
This is because version 0.4 does not support the debug flag yet. I am currently working on version 0.5 and had already checked in the changes for the README.md file on master. Please refer to tag v0.4 for available convention properties in version 0.4. I will probably push the next version within the upcoming week. As soon as I do I will let you know.