Class ScpExternalWagon
- java.lang.Object
-
- org.apache.maven.wagon.AbstractWagon
-
- org.apache.maven.wagon.providers.rsync.external.AbstractExternalWagon
-
- org.apache.maven.wagon.providers.rsync.external.AbstractSshWagon
-
- org.apache.maven.wagon.providers.rsync.external.ScpExternalWagon
-
- All Implemented Interfaces:
CommandExecutor,ExternalWagon,SshCommandExecutor,WagonHasAuthenticationInfo,Wagon
public class ScpExternalWagon extends AbstractSshWagon
SCP deployer using "external" scp program. To allow for ssh-agent type behavior, until we can construct a Java SSH Agent and interface for JSch.- Author:
- Brett Porter
-
-
Field Summary
-
Fields inherited from class org.apache.maven.wagon.AbstractWagon
authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport
-
Fields inherited from interface org.apache.maven.wagon.CommandExecutor
ROLE
-
Fields inherited from interface org.apache.maven.wagon.providers.rsync.external.SshCommandExecutor
SSH_FATAL_EXIT_CODE
-
Fields inherited from interface org.apache.maven.wagon.Wagon
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
-
-
Constructor Summary
Constructors Constructor Description ScpExternalWagon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommandlinecreateBaseCommandLine(File privateKey, String... options)StringgetExecutable()voidputDirectory(File sourceDirectory, String destinationDirectory)-
Methods inherited from class org.apache.maven.wagon.providers.rsync.external.AbstractSshWagon
getFileList, putMkdirRemote, putSetPermissionRemote, resourceExists
-
Methods inherited from class org.apache.maven.wagon.providers.rsync.external.AbstractExternalWagon
closeConnection, executeCopyCommand, executeCopyCommand, fireSessionDebug, fireTransferDebug, get, getIfNewer, openConnectionInternal, put, supportsDirectoryCopy
-
Methods inherited from class org.apache.maven.wagon.AbstractWagon
addSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferError, fireTransferProgress, getAuthenticationInfo, getBufferCapacityForTransfer, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getReadTimeout, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, openConnection, postProcessListeners, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setReadTimeout, setSessionEventSupport, setTimeout, setTransferEventSupport, transfer, transfer, transfer, transfer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.maven.wagon.providers.rsync.external.SshCommandExecutor
createSshBaseCommandLine, executeCommand, executeCommand, fireSessionDebug, fireTransferDebug, getSshArgs, getSshExecutable
-
Methods inherited from interface org.apache.maven.wagon.Wagon
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, get, getIfNewer, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout
-
Methods inherited from interface org.apache.maven.wagon.providers.rsync.external.WagonHasAuthenticationInfo
buildRemoteHost, getAuthenticationInfo
-
-
-
-
Method Detail
-
getExecutable
public String getExecutable()
-
putDirectory
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
putDirectoryin interfaceWagon- Overrides:
putDirectoryin classAbstractWagon- Throws:
TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException
-
createBaseCommandLine
protected Commandline createBaseCommandLine(File privateKey, String... options)
- Specified by:
createBaseCommandLinein classAbstractExternalWagon
-
-