Browse Source

Make <copy> throw an exception if the file to copy doesn't exist.

PR: 1547
Submitted by:	Alan Gates <alang@radik.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269002 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
770b1dd275
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

@@ -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);
}
}



Loading…
Cancel
Save