Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
For loop question

For loop question

2007-06-29       - By broken connection
Reply:     1     2     3     4     5     6  

Hi Friends,
I have a simple "for" task question. I use this for task from ant-contrib:

       <for list="${pass1.property},${pass2.property},${pass3.property}"
param="argvalue">
       <sequential>

       <exec  executable="${ext}" >
           <arg value="/c"/>
           <arg value="execute.bat @{argvalue}"/>
           <redirector outputproperty="result.property" />
        </exec>

       </sequential>
       </for>

I want to pass in 3 values and store the output in 3 different properties .
Is there anyway to do this??

Rite now, the output of all the 3 parameters gets overritten in "
result.property"

Your help would be greatly appreciated.
Thanks

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.