-----Original Message-----
From: samcollins [mailto:[email protected]]
Sent: Wednesday, January 14, 2009 8:37 PM
To: [email protected]
Subject: Re: How do I call antcall once per line of file using line value as
parameter?
/*
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?
*/
The value of the param attribute can be accessed via @{...}, example
from the antcontrib manual =
<for list="a,b,c,d,e" param="letter">
<sequential>
<echo>Letter @{letter}</echo>
</sequential>
</for>
so for your example it should work like that =
<ac:for param="x">
<tokens>
<file file="${input.file}" />
</tokens>
<sequential>
<echo>Foo => @{x}</echo>
...
</sequential>
</ac:for>
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]