org.apache.maven.wagon.providers.ssh
Class ScpHelper
java.lang.Object
org.apache.maven.wagon.providers.ssh.ScpHelper
public class ScpHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH_SEPARATOR
public static final char PATH_SEPARATOR
- See Also:
- Constant Field Values
DEFAULT_SSH_PORT
public static final int DEFAULT_SSH_PORT
- See Also:
- Constant Field Values
ScpHelper
public ScpHelper(CommandExecutor executor)
getResourceDirectory
public static String getResourceDirectory(String resourceName)
getResourceFilename
public static String getResourceFilename(String r)
getResource
public static Resource getResource(String resourceName)
getPrivateKey
public static File getPrivateKey(AuthenticationInfo authenticationInfo)
throws FileNotFoundException
- Throws:
FileNotFoundException
createZip
public static void createZip(List<String> files,
File zipName,
File basedir)
throws IOException
- Throws:
IOException
getPath
protected static String getPath(String basedir,
String dir)
putDirectory
public void putDirectory(Wagon wagon,
File sourceDirectory,
String destinationDirectory)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Throws:
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
getFileList
public List<String> getFileList(String destinationDirectory,
Repository repository)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Throws:
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
resourceExists
public boolean resourceExists(String resourceName,
Repository repository)
throws TransferFailedException,
AuthorizationException
- Throws:
TransferFailedException
AuthorizationException
createRemoteDirectories
public void createRemoteDirectories(String path,
RepositoryPermissions permissions)
throws CommandExecutionException
- Throws:
CommandExecutionException
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.