You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@locus.apache.org on 2000/11/20 23:56:37 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Mkdir.java
conor 00/11/20 14:56:37
Modified: src/main/org/apache/tools/ant/taskdefs Mkdir.java
Log:
Make mkdir throw an exception if a file of the same name already exists when
trying to create a directory.
Revision Changes Path
1.4 +1 -1 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
Index: Mkdir.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Mkdir.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Mkdir.java 2000/09/18 07:55:00 1.3
+++ Mkdir.java 2000/11/20 22:56:36 1.4
@@ -74,7 +74,7 @@
}
if (dir.isFile()) {
- log("Warning: Specified directory is a file: " + dir.getAbsolutePath());
+ throw new BuildException("Unable to create directory as a file already exists with that name: " + dir.getAbsolutePath());
}
if (!dir.exists()) {