Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.maven.wagon.AbstractWagon
org.apache.maven.wagon.providers.ssh.AbstractSshWagon
org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon
public class ScpExternalWagon
extends AbstractSshWagon
Field Summary |
Fields inherited from class org.apache.maven.wagon.providers.ssh.AbstractSshWagon | |
DEFAULT_SSH_PORT , PATH_SEPARATOR , interactiveUserInfo , knownHostsProvider |
Fields inherited from class org.apache.maven.wagon.AbstractWagon | |
DEFAULT_BUFFER_SIZE , authenticationInfo , interactive , proxyInfo , repository , sessionEventSupport , transferEventSupport |
Fields inherited from interface org.apache.maven.wagon.CommandExecutor | |
ROLE |
Method Summary | |
void | |
void |
|
Streams |
|
void |
|
String | |
String | |
String | |
String | |
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.maven.wagon.providers.ssh.AbstractSshWagon | |
executeCommand , getDirectoryMode , getFileList , getIfNewer , getInteractiveUserInfo , getKnownHostsProvider , getOctalMode , getOctalMode , getPort , getPrivateKey , getResource , getResourceDirectory , getResourceFilename , handleGetException , openConnection , putDirectory , resourceExists , setInteractiveUserInfo , setKnownHostsProvider , supportsDirectoryCopy |
public void executeCommand(String command) throws CommandExecutionException
- Specified by:
- executeCommand in interface CommandExecutor
- Overrides:
- executeCommand in interface AbstractSshWagon
public Streams executeCommand(String command, boolean ignoreFailures) throws CommandExecutionException
- Specified by:
- executeCommand in interface CommandExecutor
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Downloads specified resource from the repository to given file.
- Parameters:
resourceName
-destination
-
public String getScpArgs()
public String getScpExecutable()
public String getSshArgs()
public String getSshExecutable()
public void openConnection() throws AuthenticationException
- Specified by:
- openConnection in interface Wagon
- Overrides:
- openConnection in interface AbstractSshWagon
public void put(File source, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Copy a file from local system to remote
- Parameters:
source
- the local filedestination
- the remote destination
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Copy a directory from local system to remote
- Specified by:
- putDirectory in interface Wagon
- Overrides:
- putDirectory in interface AbstractSshWagon
- Parameters:
sourceDirectory
- the local directorydestinationDirectory
- the remote destination
public void setScpArgs(String scpArgs)
public void setScpExecutable(String scpExecutable)
public void setSshArgs(String sshArgs)
public void setSshExecutable(String sshExecutable)