public class ScpHelper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SSH_PORT |
static char |
PATH_SEPARATOR |
Constructor and Description |
---|
ScpHelper(CommandExecutor executor) |
Modifier and Type | Method and Description |
---|---|
void |
createRemoteDirectories(String path,
RepositoryPermissions permissions) |
static void |
createZip(List files,
File zipName,
File basedir) |
List |
getFileList(String destinationDirectory,
Repository repository) |
protected static String |
getPath(String basedir,
String dir) |
static File |
getPrivateKey(AuthenticationInfo authenticationInfo) |
static Resource |
getResource(String resourceName) |
static String |
getResourceDirectory(String resourceName) |
static String |
getResourceFilename(String r) |
void |
putDirectory(Wagon wagon,
File sourceDirectory,
String destinationDirectory) |
boolean |
resourceExists(String resourceName,
Repository repository) |
public static final char PATH_SEPARATOR
public static final int DEFAULT_SSH_PORT
public ScpHelper(CommandExecutor executor)
public static File getPrivateKey(AuthenticationInfo authenticationInfo) throws FileNotFoundException
FileNotFoundException
public static void createZip(List files, File zipName, File basedir) throws IOException
IOException
public void putDirectory(Wagon wagon, File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
public List getFileList(String destinationDirectory, Repository repository) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
public boolean resourceExists(String resourceName, Repository repository) throws TransferFailedException, AuthorizationException
public void createRemoteDirectories(String path, RepositoryPermissions permissions) throws CommandExecutionException
CommandExecutionException
Copyright © 2003–2015. All rights reserved.