super.execute();
if (getProject().getProperty(prop) == null) {
console.log(1, "compiled classes are up-to-date");
}
Copy copy = new Copy();
copy.setTaskName(getTaskName());
copy.setProject(getProject());
copy.setTodir(getDestdir());
copy.setVerbose(getVerbose());
if (getVerbose()) {
console.log("copying resources => {0}", getDestdir());
}
if (excludes == null) {
// default exclusions
excludes = Toolkit.DEFAULT_CODE_EXCLUDES;
}
for (String path : getSrcdir().list()) {
File file = new File(path);
if (file.isDirectory()) {
FileSet set = prepareResourceSet(file);
copy.addFileset(set);
if (getVerbose()) {
console.log("adding resource path {0}", path);
}
}
}
copy.execute();
}