looping in ant
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   cjraman_cjraman
Posted On:   Thursday, June 9, 2005 05:42 PM

Hi,
I had written a build script to generate a ear file for a specific module, and i have several modules like that i want to know is there any way by which i can loop through ant build script so that i can use single build script for various modules can anyone help me in this regard. Thank you

Re: looping in ant

Posted By:   Anonymous  
Posted On:   Tuesday, June 14, 2005 03:16 AM

Maybe you want to setup another build infrastructure: one(your current) common buildfile, one master-buildfile and one buildfile for each module:


.common.xml:

...
...
...


.master.xml:






...


.moduleAuild.xml:




Then you could build each module for itself via its own buildfile (which are only importing the common stuff) or build all together via master buildfile (which iterates over all module-buildfiles).



Another word to : use instead if possible - it´s faster. is the equivalent to which has to open a new property scope. is the equivalent to which does not open a new scope.

Re: looping in ant

Posted By:   Roseanne_Zhang  
Posted On:   Thursday, June 9, 2005 09:52 PM

use ant-contrib


About | Sitemap | Contact