maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r371720 - /maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
Date Mon, 23 Jan 2006 23:41:43 GMT
Author: brett
Date: Mon Jan 23 15:41:42 2006
New Revision: 371720

URL: http://svn.apache.org/viewcvs?rev=371720&view=rev
Log:
[WAGON-30] correct error when the directory already exists

Modified:
    maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java

Modified: maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
URL: http://svn.apache.org/viewcvs/maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java?rev=371720&r1=371719&r2=371720&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-file/src/main/java/org/apache/maven/wagon/providers/file/FileWagon.java
Mon Jan 23 15:41:42 2006
@@ -108,7 +108,9 @@
 
         File path = new File( basedir, destinationDirectory );
 
-        if ( !path.mkdirs() )
+        boolean result = path.mkdirs();
+
+        if ( !path.exists() || !path.isDirectory() )
         {
             throw new TransferFailedException( "Could not make directory '" + path.getAbsolutePath()
+ "'." );
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message