简体   繁体   中英

Eclipse, how to run multiple ant-targets

I have a bunch of java-projects, each project has a build.xml-file.

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.

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. 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. Then in the Builders view you can specify the ordering to make sure the build is invoked before the deployment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM