grails 不生成 ant 构建文件
我是圣杯的初学者。我从快速入门教程中了解到,grails create-app 将为 Ant 生成一个 build.xml。
我执行命令。但无法获取 build.xml 文件。是否有遗漏任何步骤?任何帮助表示赞赏。
I'm a beginner of Grail. I learned from the quick-start tutorial that the grails create-app will generate a build.xml for Ant.
I execute the command. but couldn't get the build.xml file. Is there missing any steps? Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如唐所说,你真的不需要它。但如果您想要自动创建过去的 build.xml,请运行
See http://grails.org/doc/latest/ref/Command%20Line/integrate-with.html
As Don said you really don't need it. But if you want the build.xml that used to be automatically created, run
See http://grails.org/doc/latest/ref/Command%20Line/integrate-with.html
Grails 可能会“在后台”生成一个
build.xml
文件,但是您没有理由担心这一点,因为在使用 Grails 进行开发时您并不直接使用 Ant。相反,您可以使用 Grails 命令(例如create-app
)来创建、构建、测试、部署等 Grails 应用程序。create-app
命令创建一个新应用程序。要运行该应用程序,请从项目的根目录执行命令grails run-app
。Grails may generate a
build.xml
file "under the hood", but there's no reason for you to worry about this, because you don't work with Ant directly when developing with Grails. Instead you use Grails commands (likecreate-app
) to create, build, test, deploy, etc. Grails applications.The
create-app
command creates a new application. To run the application, execute the commandgrails run-app
from the root directory of the project.