ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: filelist task
Date Wed, 19 Sep 2007 09:28:55 GMT
sun99 wrote:
> I have list of modules (may vary) to be checked out from cvs  and
> compile each module . how can i loop these activities in ant build.

Dont treat it as a loop. so much as building a set of ant projects. For 
which <subant> can be used to call compile on all of them. OF course, 
you do have dependencies between them, which makes ordering the stuff 
complex. Start with a filelist inside them

<subant target="compile">
     <file name="main/build.xml" />
     <file name="test/build.xml" />

You can also look at Ivy to build that file list for you, based on 
dependencies listed between projects. That's more advanced, but very 

Steve Loughran        
Author: Ant in Action 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message