org.apache.ivy.plugins.resolver
Class SshResolver
public
class
SshResolver
extends AbstractSshBasedResolver
Resolver for SSH resolver for ivy
Method Summary |
String | getTypeName() |
void | setCreateDirCommand(String cmd)
set the command to create a directory on the target system the command has to be a shell
command working on the target system and has to create a directory with the given argument
the term %arg can be used in the command to substitue the path to be listed if %arg is not
part of the command, the path will be appended to the command default is: "mkdir" |
void | setExistCommand(String cmd)
set the command to check for existence of a file the command has to be a shell command
working on the target system and has to create an exit status of 0 for an existent file
and <> 0 for a non existing file given as argument the term %arg can be used in the command
to substitue the path to be listed if %arg is not part of the command, the path will be
appended to the command default is: "ls" |
void | setFileSeparator(String sep)
sets the path separator used on the target system. |
void | setListCommand(String cmd)
set the command to get a directory listing the command has to be a shell command working on
the target system and has to produce a listing of filenames, with each filename on a new line
the term %arg can be used in the command to substitue the path to be listed
(e.g. |
void | setPublishPermissions(String permissions)
A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions
of the published files. |
public SshResolver()
public String getTypeName()
public void setCreateDirCommand(String cmd)
set the command to create a directory on the target system the command has to be a shell
command working on the target system and has to create a directory with the given argument
the term %arg can be used in the command to substitue the path to be listed if %arg is not
part of the command, the path will be appended to the command default is: "mkdir"
public void setExistCommand(String cmd)
set the command to check for existence of a file the command has to be a shell command
working on the target system and has to create an exit status of 0 for an existent file
and <> 0 for a non existing file given as argument the term %arg can be used in the command
to substitue the path to be listed if %arg is not part of the command, the path will be
appended to the command default is: "ls"
public void setFileSeparator(String sep)
sets the path separator used on the target system. Not sure if this is used or if '/' is used
on all implementation. default is to use '/'
Parameters: sep
file separator to use on the target system
public void setListCommand(String cmd)
set the command to get a directory listing the command has to be a shell command working on
the target system and has to produce a listing of filenames, with each filename on a new line
the term %arg can be used in the command to substitue the path to be listed
(e.g. "ls -1 %arg | grep -v CVS" to get a listing without CVS directory) if %arg is not
part of the command, the path will be appended to the command default is: "ls -1"
public void setPublishPermissions(String permissions)
A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions
of the published files.