ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/unix Symlink.java
Date Fri, 11 Feb 2005 16:53:00 GMT
mbenson     2005/02/11 08:53:00

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/unix
                        Symlink.java
  Log:
  Instantiate our own DirectoryScanner, since we plan to override
  the fileset's followSymlinks attribute.
  
  Revision  Changes    Path
  1.26      +3 -2      ant/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java
  
  Index: Symlink.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/unix/Symlink.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- Symlink.java	4 Feb 2005 14:56:51 -0000	1.25
  +++ Symlink.java	11 Feb 2005 16:53:00 -0000	1.26
  @@ -551,7 +551,8 @@
           // loop through the supplied file sets:
           for (int i = 0; i < v.size(); i++) {
               FileSet fs = (FileSet) v.elementAt(i);
  -            DirectoryScanner ds = fs.getDirectoryScanner(this.getProject());
  +            DirectoryScanner ds = new DirectoryScanner();
  +            fs.setupDirectoryScanner(ds, getProject());
               ds.setFollowSymlinks(false);
               ds.scan();
               String[] incs = ds.getIncludedFiles();
  
  
  

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


Mime
View raw message