Browse Source

Make Path.append() more forgiving.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267899 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
2c09476bfe
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/main/org/apache/tools/ant/types/Path.java

+ 1
- 0
src/main/org/apache/tools/ant/types/Path.java View File

@@ -181,6 +181,7 @@ public class Path {
* Append the contents of the other Path instance to this.
*/
public void append(Path other) {
if (other == null) return;
String[] l = other.list();
for (int i=0; i<l.length; i++) {
if (elements.indexOf(l[i]) == -1) {


Loading…
Cancel
Save