ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: Replacing chars in a property
Date Mon, 19 Nov 2007 09:03:14 GMT

-----Original Message-----
From: Nicolai Kamenzky [] 
Sent: Sunday, November 18, 2007 10:33 PM
To: Ant Users List
Subject: Re: Replacing chars in a property

I wonder why simple string operations seem to be unavailable for
working solely on properties...

Because in core ant, once set properties are immutable.

But there are existing tasks and workarounds for that restriction.

The stringutils  [1] you're are searching for are part of the excellent
tasksuite antelope [2]. 
Also the antcontrib task suite [3] has such tasks, for example

Beside that you can always go with script, and project.setProperty() 
i.e. see an example [4] to change or overwrite existing properties.
If you don't want to overwrite use the setNewProperty() method instead.

See =

Regards, Gilbert

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

View raw message