ant-user mailing list archives

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


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

   <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?

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message