ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r709765 - /ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveScanner.java
Date Sat, 01 Nov 2008 19:52:11 GMT
Author: stevel
Date: Sat Nov  1 12:52:10 2008
New Revision: 709765

URL: http://svn.apache.org/viewvc?rev=709765&view=rev
Log:
Bug 43348: add awareness of FileProvider to ArchiveScanner

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveScanner.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveScanner.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveScanner.java?rev=709765&r1=709764&r2=709765&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveScanner.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/ArchiveScanner.java Sat Nov  1 12:52:10
2008
@@ -28,6 +28,7 @@
 import org.apache.tools.ant.Project;
 import org.apache.tools.ant.types.resources.FileResource;
 import org.apache.tools.ant.types.resources.FileResourceIterator;
+import org.apache.tools.ant.types.resources.FileProvider;
 
 /**
  * ArchiveScanner accesses the pattern matching algorithm in DirectoryScanner,
@@ -114,8 +115,8 @@
      */
     public void setSrc(Resource src) {
         this.src = src;
-        if (src instanceof FileResource) {
-            srcFile = ((FileResource) src).getFile();
+        if (src instanceof FileProvider) {
+            srcFile = ((FileProvider) src).getFile();
         }
     }
 



Mime
View raw message