Browse Source

adding a selector to abstractfileset did not null the cached directory scanner

now there is no need to null the directory scanner when cloning


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277696 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
936476ea69
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/types/AbstractFileSet.java

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

@@ -586,6 +586,7 @@ public abstract class AbstractFileSet extends DataType
throw noChildrenAllowed();
}
selectors.addElement(selector);
directoryScanner = null;
}

/* Methods below all add specific selectors */
@@ -784,7 +785,6 @@ public abstract class AbstractFileSet extends DataType
.addElement(((PatternSet) e.nextElement()).clone());
}
fs.selectors = (Vector) fs.selectors.clone();
fs.directoryScanner = null; // Clear the cached directory scanner
return fs;
} catch (CloneNotSupportedException e) {
throw new BuildException(e);


Loading…
Cancel
Save