ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r378295 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
Date Thu, 16 Feb 2006 16:45:30 GMT
Author: jhm
Date: Thu Feb 16 08:45:26 2006
New Revision: 378295

URL: http://svn.apache.org/viewcvs?rev=378295&view=rev
Log:
whisper that mkdir wont create an (already existing) directory

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java?rev=378295&r1=378294&r2=378295&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Mkdir.java Thu Feb 16 08:45:26 2006
@@ -20,6 +20,7 @@
 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 @@
                 throw new BuildException(msg, getLocation());
             }
             log("Created dir: " + dir.getAbsolutePath());
+        } else {
+            log("Skipping " + dir.getAbsolutePath() + " because it already exists.", Project.MSG_VERBOSE);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message