Browse Source

clear the cached directory scanner when cloning an abstractfileset

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

+ 0
- 1
build.xml View File

@@ -333,7 +333,6 @@
<exclude unless="run.failing.tests" name="${optional.package}/jdepend/JDependTest.java"/>
<exclude unless="run.failing.tests" name="${optional.package}/DotnetTest.java"/>
<exclude unless="run.failing.tests" name="${optional.package}/WsdlToDotnetTest.java"/>
<exclude unless="run.failing.tests" name="${ant.package}/taskdefs/CloneTest.java"/>
</patternset>

<!--


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

@@ -784,6 +784,7 @@ 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