org.apache.maven.wagon.providers.ssh.jsch
Class ScpWagon
public
class
ScpWagon
extends AbstractJschWagon
A base class for deployers and fetchers using protocols from SSH2 family and
JSch library for underlying implementation
This is responsible for authentification stage of the process.
We will first try to use public keys for authentication and if that doesn't
work then we fall back to using the login and password
Version: $Id: ScpWagon.java 477374 2006-11-20 22:34:46Z brett $
UNKNOWN: [BP] add compression flag
Method Summary |
void | checkAck(InputStream in) |
void | get(String resourceName, File destination) |
void | get(String basedir, Resource resource, File destination) |
void | put(File source, String destination) |
void | put(File source, String basedir, Resource resource, String octalMode) |
protected String | readLine(InputStream in) |
protected static void | sendEom(OutputStream out) |
void | setFileGroup(RepositoryPermissions permissions, String basedir, Resource resource) |
private static final char ACK_SEPARATOR
private static final char COPY_START_CHAR
private static final String END_OF_FILES_MSG
private static final byte LF
private static final int LINE_BUFFER_SIZE
private void checkAck(InputStream in)
public void get(String resourceName, File destination)
public void get(String basedir, Resource resource, File destination)
public void put(File source, String destination)
public void put(File source, String basedir, Resource resource, String octalMode)
protected String readLine(InputStream in)
protected static void sendEom(OutputStream out)
private void setFileGroup(RepositoryPermissions permissions, String basedir, Resource resource)