The propertycopy and propertyregex tasks do not respect
property immutability. In other words, they will
override a property that has already been set.
This behavior should be deprecated.
Perhaps an optional "override" (or "overwrite")
attribute should be added to each of these tasks to
allow overwriting a property if this behavior is
desired in some instances.
The attached ant build file will test the property
immutability of each of these tasks when run.
It was tested against ant-1.5.4, ant-contrib-0.4, and
an IBM-built JDK 1.3 that comes with WebSphere Studio
Application Developer (WSAD) v5 under Windows NT 4 SP6a.
ant build file to test property immutability
Logged In: YES
user_id=83032
Property immutability is now followed, with an
optional "override" attribute
Logged In: YES
user_id=83032
FYI: This change goes into effect for the 0.6 release. Until
then, build the .jar from the source code.
Logged In: YES
user_id=83032
This has been extended to the URLEncode PropertyRegex and
PropertySelector tasks as well.