Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
Using for loop

Using for loop

2007-06-20       - By arijit
Reply:     1     2     3     4  

I am trying to dynamically generate build2.xml by executing build1.xml. I
have a build2_template.xml file and a property file. build2.xml is generated
by reading the build2_template.xml and providing inputs to it through the
property file.

a series of similar code needs to be written in build2.xml file which is a
repititive work. So I was thinking of using some for - loop to write codes

<property name="testN" value="TEST-N"/>

in build2_template.xml

where N could be from 1 to some value which is defined in the property file.
the property file is loaded in build1.xml

Any suggestion ?

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.