org.apache.ivy.plugins.resolver

Class SshResolver

public class SshResolver extends AbstractSshBasedResolver

Resolver for SSH resolver for ivy
Constructor Summary
SshResolver()
Method Summary
StringgetTypeName()
voidsetCreateDirCommand(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"
voidsetExistCommand(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"
voidsetFileSeparator(String sep)
sets the path separator used on the target system.
voidsetListCommand(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.
voidsetPublishPermissions(String permissions)
A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions of the published files.

Constructor Detail

SshResolver

public SshResolver()

Method Detail

getTypeName

public String getTypeName()

setCreateDirCommand

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"

setExistCommand

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"

setFileSeparator

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

setListCommand

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"

setPublishPermissions

public void setPublishPermissions(String permissions)
A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions of the published files.