Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

How do I call antcall once per line of file using line value as parameter?

Paul Taylor

2008-07-01

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.