开发者

How to keep a set of ant build scripts updated in different java IDEs?

开发者 https://www.devze.com 2023-04-12 06:24 出处:网络
My team members are developing different java projects using InteliJ, Eclipse and NetBeans. As a software configuration management practice, I need to have a standard Ant build script for each of thes

My team members are developing different java projects using InteliJ, Eclipse and NetBeans. As a software configuration management practice, I need to have a standard Ant build script for each of these projects. Unfortunately, the ant scripts generated by these IDEs are not in a standard format and may contain many IDE-specific tasks. Furthermore, some IDEs, e.g. InteliJ, do not update the generated Ant files auto开发者_Go百科matically when the project is changed, therefore an automatic build may simply be broken. Now, here is the problem: I have a set of build scripts. I need:

  1. The scripts to be in a standard format
  2. The build scripts to be updated automatically by the used IDEs (InteliJ, Eclipse,NetBeans) when the project is updated.

Is there any straightforward method to do this job?


Do not use IDEs to generate ant scripts. You need solid repeatable builds working without IDEs (for example on CI server like Hudson/Jenkins). Best way to have standard build is to use maven, and generate IDE projects from pom. ( IDEA works with maven natively - no need to generate project files )

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号