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

Field Summary
static charACK_SEPARATOR
static charCOPY_START_CHAR
static StringEND_OF_FILES_MSG
static byteLF
static intLINE_BUFFER_SIZE
Method Summary
voidcheckAck(InputStream in)
voidget(String resourceName, File destination)
voidget(String basedir, Resource resource, File destination)
voidput(File source, String destination)
voidput(File source, String basedir, Resource resource, String octalMode)
protected StringreadLine(InputStream in)
protected static voidsendEom(OutputStream out)
voidsetFileGroup(RepositoryPermissions permissions, String basedir, Resource resource)

Field Detail

ACK_SEPARATOR

private static final char ACK_SEPARATOR

COPY_START_CHAR

private static final char COPY_START_CHAR

END_OF_FILES_MSG

private static final String END_OF_FILES_MSG

LF

private static final byte LF

LINE_BUFFER_SIZE

private static final int LINE_BUFFER_SIZE

Method Detail

checkAck

private void checkAck(InputStream in)

get

public void get(String resourceName, File destination)

get

public void get(String basedir, Resource resource, File destination)

put

public void put(File source, String destination)

put

public void put(File source, String basedir, Resource resource, String octalMode)

readLine

protected String readLine(InputStream in)

sendEom

protected static void sendEom(OutputStream out)

setFileGroup

private void setFileGroup(RepositoryPermissions permissions, String basedir, Resource resource)