How to keep a set of ant build scripts updated in different java IDEs?
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:
- The scripts to be in a standard format
- 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 )
精彩评论