conor 2003/02/18 05:19:45
Modified: src/main/org/apache/tools/ant/taskdefs Concat.java
Log:
Turn warning about input = output into an exception. Filling up your disk
is not a good behaviour.
PR: 17154
Revision Changes Path
1.15 +3 -2 ant/src/main/org/apache/tools/ant/taskdefs/Concat.java
Index: Concat.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Concat.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -w -u -r1.14 -r1.15
--- Concat.java 10 Feb 2003 14:13:34 -0000 1.14
+++ Concat.java 18 Feb 2003 13:19:45 -0000 1.15
@@ -355,8 +355,9 @@
// Make sure input != output.
if (destinationFile != null &&
destinationFile.getAbsolutePath().equals(input[i])) {
- log(destinationFile.getName() + ": input file is " +
- "output file.", Project.MSG_WARN);
+ throw new BuildException("Input file \""
+ + destinationFile.getName()
+ + "\" is the same as the output file.");
}
is = new FileInputStream(input[i]);
|