ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: how to loop over properties
Date Mon, 08 Jul 2002 13:00:58 GMT
If you grab Sourceforge's ant-contrib code you can use the <foreach> task to
loop over a comma-separated string in a single property - that would
probably be sufficient, perhaps?!

    Erik


----- Original Message -----
From: "Weinmann, Alexander"
<Alexander.Weinmann@mummert.polizei.niedersachsen.de>
To: "Ant Users (E-Mail)" <ant-user@jakarta.apache.org>
Sent: Monday, July 08, 2002 8:21 AM
Subject: how to loop over properties


Hello ANT users,

Given a number of properties, I want to loop over
all properties starting with a given prefix and call
the same task on every such property:

Example:

For all properties "myprop" starting with PREFIX
call:

<zip destfile="${myprop}.zip" basedir="${myprop}_base" />

Does anybody have an idea how to do that?

Alexander




******************************************************************
*                                                                *
* Polizeiamt für Technik und Beschaffung Niedersachsen (PATB-NI) *
* Extern - Mummert + Partner Unternehmensberatung AG             *
* Alexander Weinmann                                             *
* Tannenbergallee 11                                             *
*                                                                *
* D-30163 Hannover                                               *
* -------------------------------------------------------------- *
* Telefon:  (0511) 96 95 - 14 81                                 *
* Mobil:    (0178)  6612113                                      *
* <mailto:alexander.weinmann@mummert.polizei.niedersachsen.de>   *
*                                                                *
******************************************************************




----------------------------------------------------------------------------
----


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


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


Mime
View raw message