You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2001/05/03 13:18:46 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Copy.java
bodewig 01/05/03 04:18:46
Modified: src/main/org/apache/tools/ant/taskdefs Copy.java
Log:
Make <copy> throw an exception if the file to copy doesn't exist.
PR: 1547
Submitted by: Alan Gates <al...@radik.com>
Revision Changes Path
1.16 +4 -1 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Copy.java
Index: Copy.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Copy.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Copy.java 2001/04/27 11:58:50 1.15
+++ Copy.java 2001/05/03 11:18:44 1.16
@@ -204,7 +204,10 @@
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);
}
}