-----Original Message----- From: samcollins [mailto:sam...@gmail.com] Sent: Wednesday, January 14, 2009 8:37 PM To: user@ant.apache.org 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: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org