ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <>
Subject Re: How do I call antcall once per line of file using line value as parameter?
Date Wed, 02 Jul 2008 18:53:06 GMT

Hi, Matt

Matt Benson schrieb:
> Trying to catch up on this thread.  Are you saying you
> want to do something for each line of a file?  No
> problem.  The ResourceCollection API was designed to
> return an Iterator partly with the aim of maintaining
> compatibility with antcontrib's for and foreach tasks.
>  Simply use the <tokens> ResourceCollection:
> <ac:for param="x">
>   <tokens>
>     <file file="${input.file}" />
>   </tokens>
>   <sequential>
>     ....
>   </sequential>
> </ac:for>

That's nice to know.
After all i'm not up to date, as we still use ant 1.6.5
in production.

I push for an update to ant 1.7.x all the time, hope i'll
get my update soon :-)

I see 1.7.1 is nearly out ...

Regards, Gilbert

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

View raw message