build - Building along with Project Dependencies in Ant -
i have java project dependent on other java projects siblings , there chain of dependencies. each individual project has build script written in ant. clarity find below sample of same.
earprojectdepends onwebproject,ejbproject:warfile generatedwebprojectbuild ,jarfile generatedejbprojectneeded buildearproject.webprojectdepends oncomponentoneproject:jarfile generatedcomponentoneprojectbuild needed buildwebproject.ejbprojectdepends oncomponenttwoproject:jarfile generatedcomponenttwoprojectbuild needed buildejbproject.
so, when build earproject build, if dependent war , jar have not been built yet, should kick-off webproject build , ejbproject build , if componentoneproject yet built, build of componentoneproject needs kicked-off , on.
can suggest clean method can accomplish this?
facing same problem @ our company wrote custom groovy script explores full dependency tree ant generates ant build scripts based on .project, .classpath, .settings/* files. wasn't difficult might seem first. way can build our products without (my)eclipse on clean cvs+jdk+groovy virtual machine. hope helps..
Comments
Post a Comment