org.apache.maven.wagon.providers.ssh.jsch

Class SftpWagon

public class SftpWagon extends AbstractJschWagon

SFTP protocol wagon.

Version: $Id: SftpWagon.java 477248 2006-11-20 16:42:51Z brett $

Author: Brett Porter

UNKNOWN: [BP] add compression flag

Field Summary
static longMILLIS_PER_SEC
static StringSFTP_CHANNEL
static intS_IFDIR
Method Summary
SftpATTRSchangeToRepositoryDirectory(ChannelSftp channel, String dir, String filename)
voidget(String resourceName, File destination)
booleangetIfNewer(Resource resource, File destination, long timestamp)
booleangetIfNewer(String resourceName, File destination, long timestamp)
voidmkdir(ChannelSftp channel, String dir, int mode)
voidmkdirs(ChannelSftp channel, String resourceName, int mode)
voidput(String basedir, Resource resource, File source)
voidput(File source, String destination)
voidsetFileMode(ChannelSftp channel, String filename, RepositoryPermissions permissions)
voidsetGroup(ChannelSftp channel, String filename, RepositoryPermissions permissions)

Field Detail

MILLIS_PER_SEC

private static final long MILLIS_PER_SEC

SFTP_CHANNEL

private static final String SFTP_CHANNEL

S_IFDIR

private static final int S_IFDIR

Method Detail

changeToRepositoryDirectory

private SftpATTRS changeToRepositoryDirectory(ChannelSftp channel, String dir, String filename)

get

public void get(String resourceName, File destination)

getIfNewer

public boolean getIfNewer(Resource resource, File destination, long timestamp)

getIfNewer

public boolean getIfNewer(String resourceName, File destination, long timestamp)

mkdir

private void mkdir(ChannelSftp channel, String dir, int mode)

mkdirs

private void mkdirs(ChannelSftp channel, String resourceName, int mode)

put

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

put

public void put(File source, String destination)

setFileMode

private void setFileMode(ChannelSftp channel, String filename, RepositoryPermissions permissions)

setGroup

private void setGroup(ChannelSftp channel, String filename, RepositoryPermissions permissions)