ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: array in ant
Date Tue, 03 Jun 2003 07:54:38 GMT
On Monday 02 June 2003 20:49, Antoine Levy-Lambert wrote:
> In ant-contrib, there is a <foreach/> task.
>
> It is able to parse a string into tokens separated by a delimiter chosen by
> the build file writer.
> <foreach list="${FooName}" delimiter=" " target="sometarget"
> param="fooelement"/>
> would invoke the target sometarget for each space separated token in
> ${FooName},
> passing the token to sometarget as ${fooelement}.
>
> I guess this is what you would like to do.
>
> Concerning arrays, I do not know if there are addon tasks for ant which
> support them.
>
> Ant-contrib has variable support (sorts of properties which are mutable).

mutable properties (var task) are part of Antelope not ant-contrib

Peter.


Mime
View raw message