Browse Source

in copypath, we skip directories although there is on other choice -bulk copy. Maybe a switch could determine policy here.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@289482 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
5b7351b7be
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/CopyPath.java

+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/CopyPath.java View File

@@ -160,6 +160,10 @@ public class CopyPath extends Task {
Project.MSG_VERBOSE);
continue;
}
if(sourceFile.isDirectory()) {
log("Skipping directory " + sourceFileName);
continue;
}
try {
log("Copying " + sourceFile + " to " + destFile,
Project.MSG_VERBOSE);


Loading…
Cancel
Save