ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Taylor <paul_t...@fastmail.fm>
Subject How do I call antcall once per line of file using line value as parameter?
Date Tue, 01 Jul 2008 23:20:27 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message