|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.wagon.AbstractWagon
org.apache.maven.wagon.providers.scm.ScmWagon
public class ScmWagon
Wagon provider to get and put files from and to SCM systems, using Maven-SCM as underlying transport.
TODO it probably creates problems if the same wagon is used in two different SCM protocols, as instance variables can keep incorrect state. TODO: For doing releases we either have to be able to add files with checking out the repository structure which may not be possible, or the checkout directory needs to be a constant. Doing releases won't scale if you have to checkout the whole repository structure in order to add 3 files.
Field Summary |
---|
Fields inherited from class org.apache.maven.wagon.AbstractWagon |
---|
authenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupport |
Fields inherited from interface org.apache.maven.wagon.Wagon |
---|
ROLE |
Constructor Summary | |
---|---|
ScmWagon()
|
Method Summary | |
---|---|
void |
closeConnection()
|
void |
get(String resourceName,
File destination)
|
File |
getCheckoutDirectory()
Get the directory where Wagon will checkout files from SCM. |
List |
getFileList(String resourcePath)
|
boolean |
getIfNewer(String resourceName,
File destination,
long timestamp)
Not implemented |
org.apache.maven.scm.manager.ScmManager |
getScmManager()
Get the ScmManager used in this Wagon |
org.apache.maven.scm.provider.ScmProvider |
getScmProvider(String scmType)
Convenience method to get the ScmProvider implementation to handle the provided SCM type |
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(org.apache.maven.scm.manager.ScmManager scmManager)
Set the ScmManager used in this Wagon |
boolean |
supportsDirectoryCopy()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScmWagon()
Method Detail |
---|
public org.apache.maven.scm.manager.ScmManager getScmManager()
ScmManager
used in this Wagon
ScmManager
public void setScmManager(org.apache.maven.scm.manager.ScmManager scmManager)
ScmManager
used in this Wagon
scmManager
- public File getCheckoutDirectory()
public void setCheckoutDirectory(File checkoutDirectory)
checkoutDirectory
- public org.apache.maven.scm.provider.ScmProvider getScmProvider(String scmType) throws org.apache.maven.scm.manager.NoSuchScmProviderException
ScmProvider
implementation to handle the provided SCM type
scmType
- type of SCM, eg. svn
, cvs
ScmProvider
that will handle provided SCM type
org.apache.maven.scm.manager.NoSuchScmProviderException
- 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
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
UnsupportedOperationException
- always
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public List 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |