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/util SourceFileScanner.java
Date Fri, 05 Aug 2005 15:28:02 GMT
mbenson     2005/08/05 08:28:02

  Modified:    src/main/org/apache/tools/ant/util SourceFileScanner.java
  Log:
  Return a FileResource from factory method.
  
  Revision  Changes    Path
  1.31      +4 -4      ant/src/main/org/apache/tools/ant/util/SourceFileScanner.java
  
  Index: SourceFileScanner.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/SourceFileScanner.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- SourceFileScanner.java	24 Jan 2005 22:08:32 -0000	1.30
  +++ SourceFileScanner.java	5 Aug 2005 15:28:02 -0000	1.31
  @@ -20,8 +20,9 @@
   import java.io.File;
   import java.util.Vector;
   import org.apache.tools.ant.Task;
  -import org.apache.tools.ant.types.ResourceFactory;
   import org.apache.tools.ant.types.Resource;
  +import org.apache.tools.ant.types.ResourceFactory;
  +import org.apache.tools.ant.types.resources.FileResource;
   
   /**
    * Utility class that collects the functionality of the various
  @@ -158,9 +159,8 @@
        * @since Ant 1.5.2
        */
       public Resource getResource(String name) {
  -        File src = FILE_UTILS.resolveFile(destDir, name);
  -        return new Resource(name, src.exists(), src.lastModified(),
  -                            src.isDirectory());
  +        return new FileResource(destDir, name);
       }
  +
   }
   
  
  
  

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


Mime
View raw message