Hey,

I have a question on this. If I want to grab the value of the param "x" of
the antcontrib for look inside a javascript tag. Is it possible?

Thanks,
Sam


Gilbert Rebhan wrote:
> 
> 
> 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: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-call-antcall-once-per-line-of-file-using-line-value-as-parameter--tp18227353p21463511.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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

Reply via email to