I did it using Ant-contrib as follows
<target name="Maintask">
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<loadfile property="params" srcFile="inputfile"/>
<foreach list="${params}" delimiter="
" target="subtask"
param="param1"/>
</target>
thanks Paul
(BTW why dont they merge things like foreach into the main ant project,
its very useful)
Paul Taylor wrote:
Hi, sure simple enough, but cant work out to iterate through lines of
file, i,e how do I implement the for loop in pseudo code below
<target name="Maintask">
<file name="inputfile"/>
for line in file
<antcall target="subtask"><param name="param1
value="nextlineoffile"/></antcall> rof
</target>
<target name=Subtask">
<dosomething param="${param1}"/>
</target>
thanks Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]