ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markww <mar...@gmail.com>
Subject Property array?
Date Thu, 14 Aug 2008 20:14:33 GMT

Hi,

Is there any way to make an array property in Ant? I want to write some
stuff to a file based on an array property. Something like the user enters
this:

   <property array name = "colors">
       <val = "red">
       <val = "green">
       <val = "blue">
    </property array>

    for (i = 0; i < ${colors}; i++) {
        <echo file="myfile.txt" append="yes" message="${colors[i]}" />
    }

Yeah I'm just making the syntax up as I go along - anything like that?

Thanks
-- 
View this message in context: http://www.nabble.com/Property-array--tp18988851p18988851.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message