Author: maartenc
Date: Tue Apr 8 14:17:48 2008
New Revision: 646074
URL: http://svn.apache.org/viewvc?rev=646074&view=rev
Log:
Renamed publishMode to publishPermissions (IVY-764)
Modified:
ant/ivy/core/trunk/doc/resolver/ssh.html
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshRepository.java
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/resolver/SshResolver.java
Modified: ant/ivy/core/trunk/doc/resolver/ssh.html
URL:
http://svn.apache.org/viewvc/ant/ivy/core/trunk/doc/resolver/ssh.html?rev=646074&r1=646073&r2=646074&view=diff
==============================================================================
--- ant/ivy/core/trunk/doc/resolver/ssh.html (original)
+++ ant/ivy/core/trunk/doc/resolver/ssh.html Tue Apr 8 14:17:48 2008
@@ -56,7 +56,7 @@
<td>No, defaults to host given on the patterns, fail if none is
set</td></tr>
<tr><td>port</td><td>The port to connect to</td>
<td>No, defaults to 22</td></tr>
- <tr><td>publishMode</td><td>A four digit string (e.g., 0644, see "man
chmod", "man open") specifying the permissions of the published files. <span
class="since">(since 2.0)</span>
+ <tr><td>publishPermissions</td><td>A four digit string (e.g., 0644, see
"man chmod", "man open") specifying the permissions of the published files.
<span class="since">(since 2.0)</span>
</td><td>No, defaults to 0600</td></tr>
</tbody>
</table>
Modified:
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshRepository.java
URL:
http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshRepository.java?rev=646074&r1=646073&r2=646074&view=diff
==============================================================================
---
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshRepository.java
(original)
+++
ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/ssh/SshRepository.java
Tue Apr 8 14:17:48 2008
@@ -55,7 +55,7 @@
private String createDirCommand = "mkdir";
- private String publishMode = "0600";
+ private String publishPermissions = "0600";
/**
* create a new resource with lazy initializing
@@ -261,7 +261,7 @@
makePath(path, session);
}
Scp myCopy = new Scp(session);
- myCopy.put(source.getCanonicalPath(), path, name, publishMode);
+ myCopy.put(source.getCanonicalPath(), path, name,
publishPermissions);
} catch (IOException e) {
if (session != null) {
releaseSession(session, destination);
@@ -429,8 +429,8 @@
* A four digit string (e.g., 0644, see "man chmod", "man open")
specifying the permissions
* of the published files.
*/
- public void setPublishMode(String mode) {
- this.publishMode = mode;
+ public void setPublishPermissions(String permissions) {
+ this.publishPermissions = permissions;
}
/**
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=646074&r1=646073&r2=646074&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
Tue Apr 8 14:17:48 2008
@@ -32,8 +32,8 @@
* 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);
+ public void setPublishPermissions(String permissions) {
+ ((SshRepository) getRepository()).setPublishPermissions(permissions);
}
/**