ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/types AbstractFileSet.java
Date Fri, 18 Feb 2005 16:57:23 GMT
peterreilly    2005/02/18 08:57:23

  Modified:    src/main/org/apache/tools/ant/types AbstractFileSet.java
  Log:
  adding a selector to abstractfileset did not null the cached directory scanner
  now there is no need to null the directory scanner when cloning
  
  Revision  Changes    Path
  1.47      +1 -1      ant/src/main/org/apache/tools/ant/types/AbstractFileSet.java
  
  Index: AbstractFileSet.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/AbstractFileSet.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- AbstractFileSet.java	18 Feb 2005 12:30:31 -0000	1.46
  +++ AbstractFileSet.java	18 Feb 2005 16:57:23 -0000	1.47
  @@ -586,6 +586,7 @@
               throw noChildrenAllowed();
           }
           selectors.addElement(selector);
  +        directoryScanner = null;
       }
   
       /* Methods below all add specific selectors */
  @@ -784,7 +785,6 @@
                           .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);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message