Browse Source

whisper that mkdir wont create an (already existing) directory

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@378295 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 19 years ago
parent
commit
dbcc616287
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/Mkdir.java

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

@@ -20,6 +20,7 @@ package org.apache.tools.ant.taskdefs;
import java.io.File;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.Project;

/**
* Creates a given directory.
@@ -62,6 +63,8 @@ public class Mkdir extends Task {
throw new BuildException(msg, getLocation());
}
log("Created dir: " + dir.getAbsolutePath());
} else {
log("Skipping " + dir.getAbsolutePath() + " because it already exists.", Project.MSG_VERBOSE);
}
}



Loading…
Cancel
Save