org.apache.maven.scm.manager
Class ScmManagerStub

java.lang.Object
  extended by org.apache.maven.scm.manager.ScmManagerStub
All Implemented Interfaces:
ScmManager

public class ScmManagerStub
extends Object
implements ScmManager

Stub implementation of ScmManager for unit testing purposes. It allows setting the expected results that the different methods will return. More information about Stubs on Martin Fowler's TestDouble

Version:
$Id: ScmManagerStub.java 540587 2007-05-22 14:00:13Z evenisse $
Author:
Carlos Sanchez

Field Summary
 
Fields inherited from interface org.apache.maven.scm.manager.ScmManager
ROLE
 
Constructor Summary
ScmManagerStub()
          Creates a new stub with stub repository and provider, and empty list of messages
 
Method Summary
 AddScmResult add(ScmRepository repository, ScmFileSet fileSet)
          Adds the given files to the source control system
 AddScmResult add(ScmRepository repository, ScmFileSet fileSet, String message)
          Adds the given files to the source control system
 BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName)
          Branch (or label in some systems) will create a branch of the source file with a certain branch name
 BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message)
          Branch (or label in some systems) will create a branch of the source file with a certain branch name
 ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch)
          Returns the changes that have happend in the source control system in a certain period of time.
 ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern)
          Returns the changes that have happend in the source control system in a certain period of time.
 ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion)
          Returns the changes that have happend in the source control system between two tags.
 ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startRevision, ScmVersion endRevision, String datePattern)
          Returns the changes that have happend in the source control system between two tags.
 CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion revision, String message)
          Save the changes you have done into the repository.
 CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String message)
          Save the changes you have done into the repository.
 CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet)
          Create a copy of the repository on your local machine
 CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, boolean recursive)
          Create a copy of the repository on your local machine.
 CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version)
          Create a copy of the repository on your local machine
 CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean recursive)
          Create a copy of the repository on your local machine.
 DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion)
          Create a diff between two branch/tag/revision.
 EditScmResult edit(ScmRepository repository, ScmFileSet fileSet)
          Make a file editable.
 ExportScmResult export(ScmRepository repository, ScmFileSet fileSet)
          Create an exported copy of the repository on your local machine
 ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version)
          Create an exported copy of the repository on your local machine
 ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String outputDirectory)
          Create an exported copy of the repository on your local machine
 ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String outputDirectory)
          Create an exported copy of the repository on your local machine
 List getMessages()
          Get the messages to return in validateScmRepository
 ScmProvider getProviderByRepository(ScmRepository repository)
           
 ScmProvider getProviderByType(String providerType)
          Returns the default provider registered for this providerType or a specific implementation if the 'maven.scm.provider.providerType.implementation' system property is defined.
 ScmProvider getProviderByUrl(String scmUrl)
           
 ScmProvider getScmProvider()
           
 ScmRepository getScmRepository()
           
 ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion version)
          List each element (files and directories) of fileSet as they exist in the repository.
 ScmRepository makeProviderScmRepository(String providerType, File path)
           
 ScmRepository makeScmRepository(String scmUrl)
          Generate a SCMRepository from a SCM url.
 RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, String message)
          Removes the given files from the source control system
 void setMessages(List messages)
          Set the messages to return in validateScmRepository
 void setScmProvider(ScmProvider scmProvider)
           
 void setScmProvider(String providerType, ScmProvider provider)
          Set a provider to be used for a type of SCM.
 void setScmProviderImplementation(String providerType, String providerImplementation)
          Set the provider implementation
 void setScmRepository(ScmRepository scmRepository)
           
 StatusScmResult status(ScmRepository repository, ScmFileSet fileSet)
          Returns the status of the files in the source control system.
 TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName)
          Tag (or label in some systems) will tag the source file with a certain tag
 TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, String message)
          Tag (or label in some systems) will tag the source file with a certain tag
 UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet)
          Make a file no longer editable.
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, Date lastUpdate)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, Date lastUpdate, String datePattern)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean runChangelog)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate, String datePattern)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String datePattern)
          Updates the copy on the local machine with the changes in the repository
 UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String datePattern)
          Updates the copy on the local machine with the changes in the repository
 List validateScmRepository(String scmUrl)
          Returns the same list as getMessages()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScmManagerStub

public ScmManagerStub()
Creates a new stub with stub repository and provider, and empty list of messages

Method Detail

setScmProvider

public void setScmProvider(ScmProvider scmProvider)

getScmProvider

public ScmProvider getScmProvider()

setScmProvider

public void setScmProvider(String providerType,
                           ScmProvider provider)
Description copied from interface: ScmManager
Set a provider to be used for a type of SCM. If there was already a designed provider for that type it will be replaced.

Specified by:
setScmProvider in interface ScmManager
Parameters:
providerType - the type of SCM, eg. svn, cvs
provider - the provider that will be used for that SCM type

setScmProviderImplementation

public void setScmProviderImplementation(String providerType,
                                         String providerImplementation)
Description copied from interface: ScmManager
Set the provider implementation

Specified by:
setScmProviderImplementation in interface ScmManager
Parameters:
providerType - The provider type, eg. cvs
providerImplementation - The provider implementation (the role-hint of the provider), eg. cvs, cvs_native

setScmRepository

public void setScmRepository(ScmRepository scmRepository)

getScmRepository

public ScmRepository getScmRepository()

setMessages

public void setMessages(List messages)
Set the messages to return in validateScmRepository

Parameters:
messages - List of String objects

getMessages

public List getMessages()
Get the messages to return in validateScmRepository

Returns:
List of String objects

makeScmRepository

public ScmRepository makeScmRepository(String scmUrl)
                                throws ScmRepositoryException,
                                       NoSuchScmProviderException
Description copied from interface: ScmManager
Generate a SCMRepository from a SCM url.

Specified by:
makeScmRepository in interface ScmManager
Parameters:
scmUrl - the scm url
Returns:
getScmRepository()
Throws:
ScmRepositoryException - if an error occurs in the scm repository construction
NoSuchScmProviderException - if the provider doesn't exist

makeProviderScmRepository

public ScmRepository makeProviderScmRepository(String providerType,
                                               File path)
                                        throws ScmRepositoryException,
                                               UnknownRepositoryStructure,
                                               NoSuchScmProviderException
Specified by:
makeProviderScmRepository in interface ScmManager
Returns:
getScmRepository()
Throws:
ScmRepositoryException
UnknownRepositoryStructure
NoSuchScmProviderException

validateScmRepository

public List validateScmRepository(String scmUrl)
Returns the same list as getMessages()

Specified by:
validateScmRepository in interface ScmManager
Parameters:
scmUrl - ignored
Returns:
List of String objects, the same list returned by getMessages()

getProviderByUrl

public ScmProvider getProviderByUrl(String scmUrl)
                             throws ScmRepositoryException,
                                    NoSuchScmProviderException
Specified by:
getProviderByUrl in interface ScmManager
Returns:
getScmProvider()
Throws:
ScmRepositoryException
NoSuchScmProviderException

getProviderByType

public ScmProvider getProviderByType(String providerType)
                              throws NoSuchScmProviderException
Description copied from interface: ScmManager
Returns the default provider registered for this providerType or a specific implementation if the 'maven.scm.provider.providerType.implementation' system property is defined. For example: maven.scm.provider.cvs.implementation=cvs_native

Specified by:
getProviderByType in interface ScmManager
Parameters:
providerType - The provider type (cvs, svn...)
Returns:
getScmProvider()
Throws:
NoSuchScmProviderException - if the provider doesn't exist

getProviderByRepository

public ScmProvider getProviderByRepository(ScmRepository repository)
                                    throws NoSuchScmProviderException
Specified by:
getProviderByRepository in interface ScmManager
Returns:
getScmProvider()
Throws:
NoSuchScmProviderException

add

public AddScmResult add(ScmRepository repository,
                        ScmFileSet fileSet)
                 throws ScmException
Description copied from interface: ScmManager
Adds the given files to the source control system

Specified by:
add in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to be added
Returns:
an AddScmResult that contains the files that have been added
Throws:
ScmException

add

public AddScmResult add(ScmRepository repository,
                        ScmFileSet fileSet,
                        String message)
                 throws ScmException
Description copied from interface: ScmManager
Adds the given files to the source control system

Specified by:
add in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to be added
message - a string that is a comment on the new added file
Returns:
an AddScmResult that contains the files that have been added
Throws:
ScmException

branch

public BranchScmResult branch(ScmRepository repository,
                              ScmFileSet fileSet,
                              String branchName)
                       throws ScmException
Description copied from interface: ScmManager
Branch (or label in some systems) will create a branch of the source file with a certain branch name

Specified by:
branch in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to branch. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
branchName - the branch name to apply to the files
Returns:
Throws:
ScmException

branch

public BranchScmResult branch(ScmRepository repository,
                              ScmFileSet fileSet,
                              String branchName,
                              String message)
                       throws ScmException
Description copied from interface: ScmManager
Branch (or label in some systems) will create a branch of the source file with a certain branch name

Specified by:
branch in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to branch. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
branchName - the branch name to apply to the files
message - the commit message used for the tag creation
Returns:
Throws:
ScmException

changeLog

public ChangeLogScmResult changeLog(ScmRepository repository,
                                    ScmFileSet fileSet,
                                    Date startDate,
                                    Date endDate,
                                    int numDays,
                                    ScmBranch branch)
                             throws ScmException
Description copied from interface: ScmManager
Returns the changes that have happend in the source control system in a certain period of time. This can be adding, removing, updating, ... of files

Specified by:
changeLog in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to know the changes about. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
startDate - the start date of the period
endDate - the end date of the period
numDays - the number days before the current time if startdate and enddate are null
branch - the branch/tag
Returns:
The SCM result of the changelog command
Throws:
ScmException

changeLog

public ChangeLogScmResult changeLog(ScmRepository repository,
                                    ScmFileSet fileSet,
                                    Date startDate,
                                    Date endDate,
                                    int numDays,
                                    ScmBranch branch,
                                    String datePattern)
                             throws ScmException
Description copied from interface: ScmManager
Returns the changes that have happend in the source control system in a certain period of time. This can be adding, removing, updating, ... of files

Specified by:
changeLog in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to know the changes about. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
startDate - the start date of the period
endDate - the end date of the period
numDays - the number days before the current time if startdate and enddate are null
branch - the branch/tag
datePattern - the date pattern use in changelog output returned by scm tool
Returns:
The SCM result of the changelog command
Throws:
ScmException

changeLog

public ChangeLogScmResult changeLog(ScmRepository repository,
                                    ScmFileSet fileSet,
                                    ScmVersion startVersion,
                                    ScmVersion endVersion)
                             throws ScmException
Description copied from interface: ScmManager
Returns the changes that have happend in the source control system between two tags. This can be adding, removing, updating, ... of files

Specified by:
changeLog in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to know the changes about. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
startVersion - the start branch/tag/revision
endVersion - the end branch/tag/revision
Returns:
The SCM result of the changelog command
Throws:
ScmException

changeLog

public ChangeLogScmResult changeLog(ScmRepository repository,
                                    ScmFileSet fileSet,
                                    ScmVersion startRevision,
                                    ScmVersion endRevision,
                                    String datePattern)
                             throws ScmException
Description copied from interface: ScmManager
Returns the changes that have happend in the source control system between two tags. This can be adding, removing, updating, ... of files

Specified by:
changeLog in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to know the changes about. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
startRevision - the start revision
endRevision - the end revision
datePattern - the date pattern use in changelog output returned by scm tool
Returns:
Throws:
ScmException

checkIn

public CheckInScmResult checkIn(ScmRepository repository,
                                ScmFileSet fileSet,
                                String message)
                         throws ScmException
Description copied from interface: ScmManager
Save the changes you have done into the repository. This will create a new version of the file or directory in the repository.

When the fileSet has no entries, the fileSet.getBaseDir() is recursively committed. When the fileSet has entries, the commit is non-recursive and only the elements in the fileSet are committed.

Specified by:
checkIn in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to check in (sometimes called commit)
message - a string that is a comment on the changes that where done
Returns:
Throws:
ScmException

checkIn

public CheckInScmResult checkIn(ScmRepository repository,
                                ScmFileSet fileSet,
                                ScmVersion revision,
                                String message)
                         throws ScmException
Description copied from interface: ScmManager
Save the changes you have done into the repository. This will create a new version of the file or directory in the repository.

When the fileSet has no entries, the fileSet.getBaseDir() is recursively committed. When the fileSet has entries, the commit is non-recursive and only the elements in the fileSet are committed.

Specified by:
checkIn in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to check in (sometimes called commit)
revision - branch/tag/revision
message - a string that is a comment on the changes that where done
Returns:
Throws:
ScmException

checkOut

public CheckOutScmResult checkOut(ScmRepository repository,
                                  ScmFileSet fileSet)
                           throws ScmException
Description copied from interface: ScmManager
Create a copy of the repository on your local machine

Specified by:
checkOut in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
Returns:
Throws:
ScmException

checkOut

public CheckOutScmResult checkOut(ScmRepository repository,
                                  ScmFileSet fileSet,
                                  ScmVersion version)
                           throws ScmException
Description copied from interface: ScmManager
Create a copy of the repository on your local machine

Specified by:
checkOut in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
version - get the version defined by the revision, branch or tag
Returns:
Throws:
ScmException

checkOut

public CheckOutScmResult checkOut(ScmRepository repository,
                                  ScmFileSet fileSet,
                                  boolean recursive)
                           throws ScmException
Description copied from interface: ScmManager
Create a copy of the repository on your local machine.

Specified by:
checkOut in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
recursive - whether to check out recursively
Returns:
Throws:
ScmException

checkOut

public CheckOutScmResult checkOut(ScmRepository repository,
                                  ScmFileSet fileSet,
                                  ScmVersion version,
                                  boolean recursive)
                           throws ScmException
Description copied from interface: ScmManager
Create a copy of the repository on your local machine.

Specified by:
checkOut in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
version - get the version defined by the revision, branch or tag
recursive - whether to check out recursively
Returns:
Throws:
ScmException

diff

public DiffScmResult diff(ScmRepository repository,
                          ScmFileSet fileSet,
                          ScmVersion startVersion,
                          ScmVersion endVersion)
                   throws ScmException
Description copied from interface: ScmManager
Create a diff between two branch/tag/revision.

Specified by:
diff in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
startVersion - the start branch/tag/revision
endVersion - the end branch/tag/revision
Returns:
Throws:
ScmException

edit

public EditScmResult edit(ScmRepository repository,
                          ScmFileSet fileSet)
                   throws ScmException
Description copied from interface: ScmManager
Make a file editable. This is used in source control systems where you look at read-only files and you need to make them not read-only anymore before you can edit them. This can also mean that no other user in the system can make the file not read-only anymore.

Specified by:
edit in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to make editable
Returns:
Throws:
ScmException

export

public ExportScmResult export(ScmRepository repository,
                              ScmFileSet fileSet)
                       throws ScmException
Description copied from interface: ScmManager
Create an exported copy of the repository on your local machine

Specified by:
export in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
Returns:
Throws:
ScmException

export

public ExportScmResult export(ScmRepository repository,
                              ScmFileSet fileSet,
                              ScmVersion version)
                       throws ScmException
Description copied from interface: ScmManager
Create an exported copy of the repository on your local machine

Specified by:
export in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
version - get the version defined by the branch/tag/revision
Returns:
Throws:
ScmException

export

public ExportScmResult export(ScmRepository repository,
                              ScmFileSet fileSet,
                              String outputDirectory)
                       throws ScmException
Description copied from interface: ScmManager
Create an exported copy of the repository on your local machine

Specified by:
export in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
outputDirectory - the directory where the export will be stored
Returns:
Throws:
ScmException

export

public ExportScmResult export(ScmRepository repository,
                              ScmFileSet fileSet,
                              ScmVersion version,
                              String outputDirectory)
                       throws ScmException
Description copied from interface: ScmManager
Create an exported copy of the repository on your local machine

Specified by:
export in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files are copied to the ScmFileSet.getBasedir() location
version - get the version defined by the branch/tag/revision
outputDirectory - the directory where the export will be stored
Returns:
Throws:
ScmException

list

public ListScmResult list(ScmRepository repository,
                          ScmFileSet fileSet,
                          boolean recursive,
                          ScmVersion version)
                   throws ScmException
Description copied from interface: ScmManager
List each element (files and directories) of fileSet as they exist in the repository.

Specified by:
list in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to list
recursive - descend recursively
version - use the version defined by the branch/tag/revision
Returns:
the list of files in the repository
Throws:
ScmException

remove

public RemoveScmResult remove(ScmRepository repository,
                              ScmFileSet fileSet,
                              String message)
                       throws ScmException
Description copied from interface: ScmManager
Removes the given files from the source control system

Specified by:
remove in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to be removed
Returns:
Throws:
ScmException

status

public StatusScmResult status(ScmRepository repository,
                              ScmFileSet fileSet)
                       throws ScmException
Description copied from interface: ScmManager
Returns the status of the files in the source control system. The state of each file can be one of the ScmFileStatus flags.

Specified by:
status in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to know the status about. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
Returns:
Throws:
ScmException

tag

public TagScmResult tag(ScmRepository repository,
                        ScmFileSet fileSet,
                        String tagName)
                 throws ScmException
Description copied from interface: ScmManager
Tag (or label in some systems) will tag the source file with a certain tag

Specified by:
tag in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to tag. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
tagName - the tag name to apply to the files
Returns:
Throws:
ScmException

tag

public TagScmResult tag(ScmRepository repository,
                        ScmFileSet fileSet,
                        String tagName,
                        String message)
                 throws ScmException
Description copied from interface: ScmManager
Tag (or label in some systems) will tag the source file with a certain tag

Specified by:
tag in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to tag. Implementations can also give the changes from the ScmFileSet.getBasedir() downwards.
tagName - the tag name to apply to the files
message - the commit message used for the tag creation
Returns:
Throws:
ScmException

unedit

public UnEditScmResult unedit(ScmRepository repository,
                              ScmFileSet fileSet)
                       throws ScmException
Description copied from interface: ScmManager
Make a file no longer editable. This is the conterpart of ScmManager.edit(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet). It makes the file read-only again.

Specified by:
unedit in interface ScmManager
Parameters:
repository - the source control system
fileSet - the files to make uneditable
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              ScmVersion version)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
version - use the version defined by the branch/tag/revision
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              boolean runChangelog)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
runChangelog - Run the changelog command after the update
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              ScmVersion version,
                              boolean runChangelog)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
version - use the version defined by the branch/tag/revision
runChangelog - Run the changelog command after the update
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              String datePattern)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
datePattern - the date pattern use in changelog output returned by scm tool
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              ScmVersion version,
                              String datePattern)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
version - use the version defined by the branch/tag/revision
datePattern - the date pattern use in changelog output returned by scm tool
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              Date lastUpdate)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              ScmVersion version,
                              Date lastUpdate)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
version - use the version defined by the branch/tag/revision
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              Date lastUpdate,
                              String datePattern)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
lastUpdate - Date of last update
datePattern - the date pattern use in changelog output returned by scm tool
Returns:
Throws:
ScmException

update

public UpdateScmResult update(ScmRepository repository,
                              ScmFileSet fileSet,
                              ScmVersion version,
                              Date lastUpdate,
                              String datePattern)
                       throws ScmException
Description copied from interface: ScmManager
Updates the copy on the local machine with the changes in the repository

Specified by:
update in interface ScmManager
Parameters:
repository - the source control system
fileSet - location of your local copy
version - use the version defined by the branch/tag/revision
lastUpdate - Date of last update
datePattern - the date pattern use in changelog output returned by scm tool
Returns:
Throws:
ScmException


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.