Browse Source

<ant> with more than one <property file="..."/> child didn't work, PR 23601

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275439 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
048afe4c9c
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/main/org/apache/tools/ant/taskdefs/Ant.java

+ 6
- 4
src/main/org/apache/tools/ant/taskdefs/Ant.java View File

@@ -450,10 +450,12 @@ public class Ant extends Task {
Set set = new HashSet();
for (int i = properties.size() - 1; i >= 0; --i) {
Property p = (Property) properties.get(i);
if (set.contains(p.getName())) {
properties.remove(i);
} else {
set.add(p.getName());
if (p.getName() != null && !p.getName().equals("")) {
if (set.contains(p.getName())) {
properties.remove(i);
} else {
set.add(p.getName());
}
}
}
Enumeration e = properties.elements();


Loading…
Cancel
Save