[英]Eclipse, how to run multiple ant-targets
I have a bunch of java-projects, each project has a build.xml-file. 我有一堆Java项目,每个项目都有一个build.xml文件。
Now what I usually do is build project A and then deploy project A using a different build-xml file that's in another java-project. 现在,我通常要做的是构建项目A,然后使用另一个Java项目中的另一个build-xml文件部署项目A。
Is there a nifty way of specifying what targets and what files I want to run, and in what particular order I want to run them? 是否有一种巧妙的方法来指定要运行的目标和文件,以及要以什么特定顺序运行它们?
Thanks! 谢谢!
If you're using Eclipse, you can add Builders to your project A that will kick off the build and then the deployment. 如果使用的是Eclipse,则可以将Builders添加到项目A中,这将开始构建,然后进行部署。 Go to the
Properties -> Builders
for the project and you can create New...
ant builders that will invoke the targets using the ant build files that you specify. 转到项目的“
Properties -> Builders
器”,您可以创建“ New...
蚂蚁构建器,这些蚂蚁构建器将使用您指定的ant构建文件来调用目标。 Then in the Builders
view you can specify the ordering to make sure the build is invoked before the deployment. 然后,在“
Builders
视图中,您可以指定顺序以确保在部署之前调用了构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.