-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjectweb-anttask-ant.patch
More file actions
31 lines (26 loc) · 1.2 KB
/
objectweb-anttask-ant.patch
File metadata and controls
31 lines (26 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- objectweb-anttask/src/org/objectweb/util/ant/MultipleCopy.java.orig 2008-01-14 22:10:02.450409267 +0100
+++ objectweb-anttask/src/org/objectweb/util/ant/MultipleCopy.java 2008-01-14 22:11:23.699039363 +0100
@@ -10,6 +10,7 @@ import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Copy;
import org.apache.tools.ant.types.FileSet;
import org.apache.tools.ant.types.PatternSet;
+import org.apache.tools.ant.types.ResourceCollection;
import java.io.File;
import java.util.StringTokenizer;
@@ -101,8 +102,10 @@ public class MultipleCopy extends Copy {
}
// deal with the filesets
- for (int i = 0; i < filesets.size(); i++) {
- FileSet fs = (FileSet) filesets.elementAt(i);
+ for (int i = 0; i < rcs.size(); i++) {
+ ResourceCollection rc = (ResourceCollection) rcs.elementAt(i);
+ if(rc instanceof FileSet && rc.isFilesystemOnly()) {
+ FileSet fs = (FileSet) rc;
DirectoryScanner ds = fs.getDirectoryScanner(getProject());
File fromDir = fs.getDir(getProject());
@@ -110,6 +113,7 @@ public class MultipleCopy extends Copy {
String[] srcDirs = ds.getIncludedDirectories();
scan(fromDir, destDir, srcFiles, srcDirs);
+ }
}
// do all the copy operations now...