ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Dorner <FDor...@zed.com>
Subject RE: Read a file line by line and do something for each line
Date Wed, 08 Apr 2009 09:11:53 GMT


Hey Jan,
> <loadfile property="src" srcFile="..."/> <ac:for param="line"
> list="${src}" delimiter="${line.separator}">
>   <sequential>
>     <mymacro line="@{line}"/>
>   </sequential>
> </ac:for>

Yes this works too, apart from my natural dislikes against for. :-)
I'll include a <fixcrlf> filter and meditate into happiness..:

Thanks,
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message