Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
objectweb-anttask
objectweb-anttask-ant17.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File objectweb-anttask-ant17.patch of Package objectweb-anttask
--- src/org/objectweb/util/ant/MultipleCopy.java +++ src/org/objectweb/util/ant/MultipleCopy.java @@ -10,6 +10,8 @@ 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.Resource; +import org.apache.tools.ant.types.ResourceCollection; import java.io.File; import java.util.StringTokenizer; @@ -100,9 +102,11 @@ } } - // deal with the filesets - for (int i = 0; i < filesets.size(); i++) { - FileSet fs = (FileSet) filesets.elementAt(i); + // deal with the ResourceCollections + 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(project); File fromDir = fs.getDir(project); @@ -110,6 +114,10 @@ String[] srcDirs = ds.getIncludedDirectories(); scan(fromDir, destDir, srcFiles, srcDirs); + } else { + throw new BuildException( + "ResourceCollections are not fully implemented"); + } } // do all the copy operations now...
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor