public class ScmWagon extends AbstractWagon
authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
Constructor and Description |
---|
ScmWagon() |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
void |
get(String resourceName,
File destination) |
File |
getCheckoutDirectory()
Get the directory where Wagon will checkout files from SCM.
|
List<String> |
getFileList(String resourcePath) |
boolean |
getIfNewer(String resourceName,
File destination,
long timestamp)
Not implemented
|
ScmManager |
getScmManager()
Get the
ScmManager used in this Wagon |
ScmProvider |
getScmProvider(String scmType)
Convenience method to get the
ScmProvider implementation to handle the provided SCM type |
String |
getScmVersion()
Get the scmVersion used in this Wagon
|
String |
getScmVersionType()
Get the scmVersionType used in this Wagon
|
void |
openConnectionInternal()
This will cleanup the checkout directory
|
void |
put(File source,
String targetName) |
void |
putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
resourceExists(String resourceName) |
void |
setCheckoutDirectory(File checkoutDirectory)
Set the directory where Wagon will checkout files from SCM.
|
void |
setScmManager(ScmManager scmManager)
Set the
ScmManager used in this Wagon |
void |
setScmVersion(String scmVersion)
Set the scmVersion
|
void |
setScmVersionType(String scmVersionType)
Set the scmVersionType
|
boolean |
supportsDirectoryCopy() |
addSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, 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
public ScmWagon()
public ScmManager getScmManager()
ScmManager
used in this WagonScmManager
public void setScmManager(ScmManager scmManager)
ScmManager
used in this WagonscmManager
- public String getScmVersion()
public void setScmVersion(String scmVersion)
scmVersion
- the scmVersion to setpublic String getScmVersionType()
public void setScmVersionType(String scmVersionType)
scmVersionType
- the scmVersionType to setpublic File getCheckoutDirectory()
public void setCheckoutDirectory(File checkoutDirectory)
checkoutDirectory
- public ScmProvider getScmProvider(String scmType) throws NoSuchScmProviderException
ScmProvider
implementation to handle the provided SCM typescmType
- type of SCM, eg. svn
, cvs
ScmProvider
that will handle provided SCM typeNoSuchScmProviderException
- if there is no ScmProvider
able to handle that SCM typepublic void openConnectionInternal() throws ConnectionException
openConnectionInternal
in class AbstractWagon
ConnectionException
public void put(File source, String targetName) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
public boolean supportsDirectoryCopy()
supportsDirectoryCopy
in interface Wagon
supportsDirectoryCopy
in class AbstractWagon
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory
in interface Wagon
putDirectory
in class AbstractWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void closeConnection() throws ConnectionException
closeConnection
in class AbstractWagon
ConnectionException
public boolean getIfNewer(String resourceName, File destination, long timestamp) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
public List<String> getFileList(String resourcePath) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getFileList
in interface Wagon
getFileList
in class AbstractWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
AbstractWagon.getFileList(java.lang.String)
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
resourceExists
in interface Wagon
resourceExists
in class AbstractWagon
TransferFailedException
AuthorizationException
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.