Browse Source

Make mkdir throw an exception if a file of the same name already exists when

trying to create a directory.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268216 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
d99dd7ac80
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Mkdir.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Mkdir.java View File

@@ -74,7 +74,7 @@ public class Mkdir extends Task {
}

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()) {


Loading…
Cancel
Save