maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r660808 - /maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/ScpWagon.java
Date Wed, 28 May 2008 04:21:39 GMT
Author: brett
Date: Tue May 27 21:21:37 2008
New Revision: 660808

URL: http://svn.apache.org/viewvc?rev=660808&view=rev
Log:
[WAGON-156] preserve file time and mode on upload so that C0xxx setting is applied. This means
that the Wagon / Maven settings for file permissions will be applied instead of the server
umask

Modified:
    maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/ScpWagon.java

Modified: maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/ScpWagon.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/ScpWagon.java?rev=660808&r1=660807&r2=660808&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/ScpWagon.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/ScpWagon.java
Tue May 27 21:21:37 2008
@@ -47,6 +47,9 @@
  * 
  * We will first try to use public keys for authentication and if that doesn't
  * work then we fall back to using the login and password.
+ * 
+ * See <a href="http://blogs.sun.com/janp/entry/how_the_scp_protocol_works">http://blogs.sun.com/janp/entry/how_the_scp_protocol_works</a>
+ * for information on how the SCP protocol works.
  *
  * @version $Id$
  * @todo [BP] add compression flag
@@ -130,8 +133,8 @@
         OutputStream out = null;
         try
         {
-            // exec 'scp -t -d rfile' remotely
-            String command = "scp -t \"" + path + "\"";
+            // exec 'scp -p -t rfile' remotely
+            String command = "scp -p -t \"" + path + "\"";
 
             fireTransferDebug( "Executing command: " + command );
 



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