maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r660355 - /maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java
Date Tue, 27 May 2008 02:46:41 GMT
Author: brett
Date: Mon May 26 19:46:39 2008
New Revision: 660355

URL: http://svn.apache.org/viewvc?rev=660355&view=rev
Log:
[WAGON-33] get a canonical file before creating directories if possible to correct problems
on HP-UX

Modified:
    maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java

Modified: maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java?rev=660355&r1=660354&r2=660355&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java
(original)
+++ maven/wagon/trunk/wagon-provider-api/src/main/java/org/apache/maven/wagon/AbstractWagon.java
Mon May 26 19:46:39 2008
@@ -196,6 +196,14 @@
         throws TransferFailedException
     {
         File destinationDirectory = destination.getParentFile();
+        try
+        {
+            destinationDirectory = destinationDirectory.getCanonicalFile();
+        }
+        catch ( IOException e )
+        {
+            // not essential to have a canonical file
+        }
         if ( destinationDirectory != null && !destinationDirectory.exists() )
         {
             if ( !destinationDirectory.mkdirs() )



---------------------------------------------------------------------
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