use of org.apache.tools.ant.types.resources.Resources in project ant by apache.
the class Sync method add.
/**
* Adds a collection of filesystem resources to copy.
* @param rc a resource collection
* @since Ant 1.7
*/
public void add(ResourceCollection rc) {
if (rc instanceof FileSet && rc.isFilesystemOnly()) {
// receives special treatment in copy that this task relies on
myCopy.add(rc);
} else {
if (resources == null) {
Restrict r = new Restrict();
r.add(new Exists());
resources = new Resources();
r.add(resources);
myCopy.add(r);
}
resources.add(rc);
}
}
Aggregations