ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r644547 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/SshResolver.java
Date Thu, 03 Apr 2008 22:55:07 GMT
Author: maartenc
Date: Thu Apr  3 15:54:57 2008
New Revision: 644547

URL: http://svn.apache.org/viewvc?rev=644547&view=rev
Log:
IMPROVEMENT: make it possible to specify permissions of published files for the SSH resolver
(IVY-764)

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/SshResolver.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/SshResolver.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/SshResolver.java?rev=644547&r1=644546&r2=644547&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/SshResolver.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/SshResolver.java Thu Apr 
3 15:54:57 2008
@@ -23,9 +23,17 @@
  * Resolver for SSH resolver for ivy
  */
 public class SshResolver extends AbstractSshBasedResolver {
-
+    
     public SshResolver() {
         setRepository(new SshRepository());
+    }
+    
+    /**
+     * A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions
+     * of the published files.
+     */
+    public void setPublishMode(String mode) {
+        ((SshRepository) getRepository()).setPublishMode(mode);
     }
 
     /**



Mime
View raw message