Browse Source

repeat fix for resource operations

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@367342 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
f997b40b6a
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/main/org/apache/tools/ant/taskdefs/Copy.java

+ 4
- 1
src/main/org/apache/tools/ant/taskdefs/Copy.java View File

@@ -889,7 +889,10 @@ public class Copy extends Task {
if (targetFile.exists() && !targetFile.delete()) {
msg += " and I couldn't delete the corrupt " + toFile;
}
throw new BuildException(msg, ioe, getLocation());
if (failonerror) {
throw new BuildException(msg, ioe, getLocation());
}
log(msg, Project.MSG_ERR);
}
}
}


Loading…
Cancel
Save