maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r365860 - /maven/wagon/trunk/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java
Date Wed, 04 Jan 2006 08:15:14 GMT
Author: brett
Date: Wed Jan  4 00:15:07 2006
New Revision: 365860

URL: http://svn.apache.org/viewcvs?rev=365860&view=rev
Log:
ensure external wagon sets correct file permissions when using defaults
PR: WAGONSSH-25

Modified:
    maven/wagon/trunk/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java

Modified: maven/wagon/trunk/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java
URL: http://svn.apache.org/viewcvs/maven/wagon/trunk/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java?rev=365860&r1=365859&r2=365860&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-ssh-external/src/main/java/org/apache/maven/wagon/providers/sshext/ScpExternalWagon.java
Wed Jan  4 00:15:07 2006
@@ -347,10 +347,12 @@
                 executeCommand( "chgrp -f " + permissions.getGroup() + " " + basedir + "/"
+ resourceName + "\n" );
             }
 
+            String fileMode = "644";
             if ( permissions != null && permissions.getFileMode() != null )
             {
-                executeCommand( "chmod -f " + permissions.getFileMode() + " " + basedir +
"/" + resourceName + "\n" );
+                fileMode = permissions.getFileMode();
             }
+            executeCommand( "chmod -f " + fileMode + " " + basedir + "/" + resourceName +
"\n" );
         }
         catch ( CommandExecutionException e )
         {



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