You could use Ant 1.8 (unreleased, svn trunk) and
implement your own PropertyHelper delegates to support
something like this.

-Matt

--- markww <[EMAIL PROTECTED]> wrote:

> 
> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to