public class ScmWagon extends AbstractWagon
| 
 | 
authenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupportDEFAULT_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  ScmManagerused in this Wagon | 
| ScmProvider | getScmProvider(String scmType)Convenience method to get the  ScmProviderimplementation 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  ScmManagerused 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, 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, transferpublic ScmWagon()
public ScmManager getScmManager()
ScmManager used in this WagonScmManagerpublic 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, cvsScmProvider that will handle provided SCM typeNoSuchScmProviderException - if there is no ScmProvider able to handle that SCM typepublic void openConnectionInternal() throws ConnectionException
openConnectionInternal in class AbstractWagonConnectionExceptionpublic void put(File source, String targetName) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
public boolean supportsDirectoryCopy()
supportsDirectoryCopy in interface WagonsupportsDirectoryCopy in class AbstractWagonpublic void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory in interface WagonputDirectory in class AbstractWagonTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionpublic void closeConnection() throws ConnectionException
closeConnection in class AbstractWagonConnectionExceptionpublic 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 WagongetFileList in class AbstractWagonTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionAbstractWagon.getFileList(java.lang.String)public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
resourceExists in interface WagonresourceExists in class AbstractWagonTransferFailedExceptionAuthorizationExceptionCopyright © 2003–2013 The Apache Software Foundation. All rights reserved.