Browse Source

bugzilla 28826: make log level messsage for failing to copy consistent

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@446969 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 19 years ago
parent
commit
7f0a1fd436
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Copy.java

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

@@ -413,7 +413,7 @@ public class Copy extends Task {
String message = "Warning: Could not find file " String message = "Warning: Could not find file "
+ file.getAbsolutePath() + " to copy."; + file.getAbsolutePath() + " to copy.";
if (!failonerror) { if (!failonerror) {
log(message);
log(message, Project.MSG_ERR);
} else { } else {
throw new BuildException(message); throw new BuildException(message);
} }
@@ -454,7 +454,7 @@ public class Copy extends Task {
|| !getMessage(e).endsWith(" not found.")) { || !getMessage(e).endsWith(" not found.")) {
throw e; throw e;
} else { } else {
log("Warning: " + getMessage(e));
log("Warning: " + getMessage(e), Project.MSG_ERR);
continue; continue;
} }
} }


Loading…
Cancel
Save