Menu

#43 propertycopy, propertyregex do not respect immutability

closed-fixed
nobody
None
5
2003-10-03
2003-08-18
No

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.

Discussion

  • David D. Kilzer

    David D. Kilzer - 2003-08-18

    ant build file to test property immutability

     
  • Matt Inger

    Matt Inger - 2003-10-03

    Logged In: YES
    user_id=83032

    Property immutability is now followed, with an
    optional "override" attribute

     
  • Matt Inger

    Matt Inger - 2003-10-03

    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.

     
  • Matt Inger

    Matt Inger - 2003-10-03
    • status: open --> closed
     
  • Matt Inger

    Matt Inger - 2003-10-03

    Logged In: YES
    user_id=83032

    This has been extended to the URLEncode PropertyRegex and
    PropertySelector tasks as well.

     
  • Matt Inger

    Matt Inger - 2003-10-03
    • status: closed --> closed-fixed
     

Log in to post a comment.