Browse Source

add note for reason for using setproperty rather than setnewproperty in available.java

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277338 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
cd36815aec
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/taskdefs/Available.java

+ 2
- 0
src/main/org/apache/tools/ant/taskdefs/Available.java View File

@@ -213,6 +213,8 @@ public class Available extends Task implements Condition {
+ " Build file should not reuse the same property"
+ " name for different values.");
}
// NB: this makes use of Project#setProperty rather than Project#setNewProperty
// due to backwards compatiblity reasons
getProject().setProperty(property, value);
}
} finally {


Loading…
Cancel
Save