diff --git a/src/main/org/apache/tools/ant/taskdefs/Copy.java b/src/main/org/apache/tools/ant/taskdefs/Copy.java index b4a045620..673ccd00a 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Copy.java +++ b/src/main/org/apache/tools/ant/taskdefs/Copy.java @@ -204,7 +204,10 @@ public class Copy extends Task { Project.MSG_VERBOSE); } } else { - log("Could not find file " + file.getAbsolutePath() + " to copy."); + String message = "Could not find file " + + file.getAbsolutePath() + " to copy."; + log(message); + throw new BuildException(message); } }