ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Property array?
Date Thu, 14 Aug 2008 20:24:10 GMT
You could use Ant 1.8 (unreleased, svn trunk) and
implement your own PropertyHelper delegates to support
something like this.

-Matt

--- markww <markww@gmail.com> 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:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



      

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


Mime
View raw message