org.apache.ivy.plugins.repository.ssh
public class SshRepository extends AbstractSshBasedRepository
Method Summary | |
---|---|
void | get(String source, File destination) |
String | getCreateDirCommand() |
String | getExistCommand() |
String | getListCommand() |
protected String | getRepositoryScheme()
return ssh as scheme use the Resolver type name here? |
Resource | getResource(String source)
create a new resource with lazy initializing |
List | list(String parent) |
InputStream | openStream(SshResource resource)
Not really streaming...need to implement a proper streaming approach?
|
void | put(File source, String destination, boolean overwrite) |
SshResource | resolveResource(String source)
Fetch the needed file information for a given file (size, last modification time) and report
it back in a SshResource
|
void | setCreateDirCommand(String createDirCommand) |
void | setExistCommand(String existCommand) |
void | setFileSeparator(char fileSeparator)
The file separator is the separator to use on the target system On a unix system it is '/',
but I don't know, how this is solved on different ssh implementations. |
void | setListCommand(String cmd)
sets the list command to use for a directory listing listing must be only the filename and
each filename on a separate line
|
void | setPublishPermissions(String permissions)
A four digit string (e.g., 0644, see "man chmod", "man open") specifying the permissions
of the published files. |
Returns: the createDirCommand
Returns: the existCommand
Returns: the list command to use
Parameters: resource to stream
Returns: InputStream of the resource data
Parameters: source ssh uri for the file to get info for
Returns: SshResource filled with the needed informations
See Also: Repository
Parameters: createDirCommand the createDirCommand to set
Parameters: existCommand the existCommand to set
Parameters: fileSeparator The fileSeparator to use. default '/'
Parameters: cmd to use. default is "ls -1"