ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Mkdir.java
Date Mon, 20 Nov 2000 22:56:37 GMT
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()) {
  
  
  

Mime
View raw message