|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.scm.provider.AbstractScmProvider
public abstract class AbstractScmProvider
Field Summary |
---|
Fields inherited from interface org.apache.maven.scm.provider.ScmProvider |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractScmProvider()
|
Method Summary | |
---|---|
protected AddScmResult |
add(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
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 |
void |
addListener(ScmLogger logger)
Add a logger listener. |
protected BranchScmResult |
branch(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
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 |
protected ChangeLogScmResult |
changelog(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
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,
Date startDate,
Date endDate,
int numDays,
String branch)
Deprecated. |
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
String branch,
String datePattern)
Deprecated. |
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 startVersion,
ScmVersion endVersion,
String datePattern)
Returns the changes that have happend in the source control system between two tags. |
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
String startTag,
String endTag)
Deprecated. |
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
String startTag,
String endTag,
String datePattern)
Deprecated. |
protected CheckInScmResult |
checkin(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion,
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. |
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String message)
Deprecated. |
protected CheckOutScmResult |
checkout(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
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 scmVersion)
Create a copy of the repository on your local machine |
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion,
boolean recursive)
Create a copy of the repository on your local machine. |
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
String tag)
Deprecated. |
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
String tag,
boolean recursive)
Deprecated. |
protected DiffScmResult |
diff(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
DiffScmResult |
diff(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
Create a diff between two branch/tag/revision. |
DiffScmResult |
diff(ScmRepository repository,
ScmFileSet fileSet,
String startRevision,
String endRevision)
Deprecated. |
protected EditScmResult |
edit(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
EditScmResult |
edit(ScmRepository repository,
ScmFileSet fileSet)
Make a file editable. |
protected ExportScmResult |
export(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet)
Create an exported copy of the repository on your local machine |
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion)
Create an exported copy of the repository on your local machine |
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion,
String outputDirectory)
Create an exported copy of the repository on your local machine |
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
String tag)
Deprecated. |
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String outputDirectory)
Deprecated. |
ScmLogger |
getLogger()
|
String |
getScmSpecificFilename()
Returns the scm reserved file name where the SCM stores information like 'CVS', '.svn'. |
protected ListScmResult |
list(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
List each element (files and directories) of fileSet as they exist in the repository. |
ListScmResult |
list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
ScmVersion scmVersion)
List each element (files and directories) of fileSet as they exist in the repository. |
ListScmResult |
list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
String tag)
List each element (files and directories) of fileSet as they exist in the repository. |
protected LoginScmResult |
login(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
ScmProviderRepository |
makeProviderScmRepository(File path)
|
protected RemoveScmResult |
remove(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
RemoveScmResult |
remove(ScmRepository repository,
ScmFileSet fileSet,
String message)
Removes the given files from the source control system |
boolean |
requiresEditMode()
|
String |
sanitizeTagName(String tag)
Given a tag name, make it suitable for this SCM provider. |
protected StatusScmResult |
status(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
StatusScmResult |
status(ScmRepository repository,
ScmFileSet fileSet)
Returns the status of the files in the source control system. |
protected TagScmResult |
tag(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
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 |
protected UnEditScmResult |
unedit(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
UnEditScmResult |
unedit(ScmRepository repository,
ScmFileSet fileSet)
Make a file no longer editable. |
protected UpdateScmResult |
update(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
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,
ScmVersion scmVersion)
Updates the copy on the local machine with the changes in the repository |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion,
boolean runChangelog)
Updates the copy on the local machine with the changes in the repository |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion,
Date lastUpdate)
Updates the copy on the local machine with the changes in the repository |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion,
Date lastUpdate,
String datePattern)
Updates the copy on the local machine with the changes in the repository |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion scmVersion,
String datePattern)
Updates the copy on the local machine with the changes in the repository |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag)
Deprecated. |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
boolean runChangelog)
Deprecated. |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate)
Deprecated. |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate,
String datePattern)
Deprecated. |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String datePattern)
Deprecated. |
List |
validateScmUrl(String scmSpecificUrl,
char delimiter)
Validate the scm url. |
boolean |
validateTagName(String tag)
Check if this tag is valid for this SCM provider. |
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.scm.provider.ScmProvider |
---|
getScmType, makeProviderScmRepository |
Constructor Detail |
---|
public AbstractScmProvider()
Method Detail |
---|
public String getScmSpecificFilename()
ScmProvider
getScmSpecificFilename
in interface ScmProvider
public String sanitizeTagName(String tag)
ScmProvider
sanitizeTagName
in interface ScmProvider
tag
- input tag name
ScmProvider.sanitizeTagName(java.lang.String)
public boolean validateTagName(String tag)
ScmProvider
validateTagName
in interface ScmProvider
tag
- tag name to check
ScmProvider.validateTagName(java.lang.String)
public List validateScmUrl(String scmSpecificUrl, char delimiter)
ScmProvider
validateScmUrl
in interface ScmProvider
scmSpecificUrl
- The SCM urldelimiter
- The delimiter used in the SCM url
public boolean requiresEditMode()
requiresEditMode
in interface ScmProvider
public AddScmResult add(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider
add
in interface ScmProvider
repository
- the source control systemfileSet
- the files to be added
AddScmResult
that contains the files that have been added
ScmException
ScmProvider.add(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
public AddScmResult add(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
ScmProvider
add
in interface ScmProvider
repository
- the source control systemfileSet
- the files to be addedmessage
- a string that is a comment on the new added file
AddScmResult
that contains the files that have been added
ScmException
ScmProvider.add(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,String)
protected AddScmResult add(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName) throws ScmException
ScmProvider
branch
in interface ScmProvider
repository
- the source control systemfileSet
- the files to branch. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.branchName
- the branch name to apply to the files
ScmException
ScmProvider.branch(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String)
public BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message) throws ScmException
ScmProvider
branch
in interface ScmProvider
repository
- the source control systemfileSet
- the files to branch. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.branchName
- the branch name to apply to the filesmessage
- the commit message used for the tag creation
ScmException
ScmProvider.branch(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.lang.String)
protected BranchScmResult branch(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startdate and enddate are nullbranch
- the branch/tag name
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.util.Date,java.util.Date,int,java.lang.String)
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch, String datePattern) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startdate and enddate are nullbranch
- the branch/tag namedatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.util.Date,java.util.Date,int,java.lang.String,java.lang.String)
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startdate and enddate are nullbranch
- the branch/tag
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.util.Date,java.util.Date,int,ScmBranch)
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startdate and enddate are nullbranch
- the branch/tagdatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.util.Date,java.util.Date,int,ScmBranch,String)
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startTag
- the start tagendTag
- the end tag
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.lang.String)
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag, String datePattern) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startTag
- the start tagendTag
- the end tagdatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.lang.String,java.lang.String)
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startVersion
- the start branch/tag/revisionendVersion
- the end branch/tag/revision
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,ScmVersion)
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion, String datePattern) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startVersion
- the start revisionendVersion
- the end revisiondatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,ScmVersion,java.lang.String)
protected ChangeLogScmResult changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String tag, String message) throws ScmException
ScmProvider
checkIn
in interface ScmProvider
repository
- the source control systemfileSet
- the files to check in (sometimes called commit)tag
- tag or revisionmessage
- a string that is a comment on the changes that where done
ScmException
ScmProvider.checkIn(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.lang.String)
public CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
ScmProvider
checkIn
in interface ScmProvider
repository
- the source control systemfileSet
- the files to check in (sometimes called commit)message
- a string that is a comment on the changes that where done
ScmException
ScmProvider.checkIn(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String)
public CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String message) throws ScmException
ScmProvider
checkIn
in interface ScmProvider
repository
- the source control systemfileSet
- the files to check in (sometimes called commit)scmVersion
- branch/tag/revisionmessage
- a string that is a comment on the changes that where done
ScmException
ScmProvider.checkIn(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,java.lang.String)
protected CheckInScmResult checkin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException
ScmProvider
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- get the version defined by the tag
ScmException
ScmProvider.checkOut(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String)
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, String tag, boolean recursive) throws ScmException
ScmProvider
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- tag or revisionrecursive
- whether to check out recursively
ScmException
ScmProvider.checkOut(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,boolean)
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
location
ScmException
ScmProvider.checkOut(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException
ScmProvider
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationscmVersion
- get the version defined by the revision, branch or tag
ScmException
ScmProvider.checkOut(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion)
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, boolean recursive) throws ScmException
ScmProvider
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationrecursive
- whether to check out recursively
ScmException
ScmProvider.checkOut(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,boolean)
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, boolean recursive) throws ScmException
ScmProvider
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationscmVersion
- get the version defined by the revision, branch or tagrecursive
- whether to check out recursively
ScmException
ScmProvider.checkOut(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,boolean)
protected CheckOutScmResult checkout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, String startRevision, String endRevision) throws ScmException
ScmProvider
diff
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationstartRevision
- the start revisionendRevision
- the end revision
ScmException
ScmProvider.diff(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.lang.String)
public DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
ScmProvider
diff
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationstartVersion
- the start branch/tag/revisionendVersion
- the end branch/tag/revision
ScmException
ScmProvider.diff(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,ScmVersion)
protected DiffScmResult diff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public EditScmResult edit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider
edit
in interface ScmProvider
repository
- the source control systemfileSet
- the files to make editable
ScmException
ScmProvider.edit(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
protected EditScmResult edit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException
ScmProvider
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- get the version defined by the tag
ScmException
ScmProvider.export(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String)
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag, String outputDirectory) throws ScmException
ScmProvider
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- get the version defined by the tagoutputDirectory
- the directory where the export will be stored
ScmException
ScmProvider.export(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,String)
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
location
ScmException
ScmProvider.export(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException
ScmProvider
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationscmVersion
- get the version defined by the branch/tag/revision
ScmException
ScmProvider.export(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion)
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String outputDirectory) throws ScmException
ScmProvider
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationscmVersion
- get the version defined by the branch/tag/revisionoutputDirectory
- the directory where the export will be stored
ScmException
ScmProvider.export(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,String)
protected ExportScmResult export(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, String tag) throws ScmException
ScmProvider
list
in interface ScmProvider
repository
- the source control systemfileSet
- the files to listrecursive
- descend recursivelytag
- use the version defined by the tag
ScmException
ScmProvider.list(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,boolean,String)
public ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion scmVersion) throws ScmException
ScmProvider
list
in interface ScmProvider
repository
- the source control systemfileSet
- the files to listrecursive
- descend recursivelyscmVersion
- use the version defined by the branch/tag/revision
ScmException
ScmProvider.list(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,boolean,org.apache.maven.scm.ScmVersion)
protected ListScmResult list(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
repository
- the source control systemfileSet
- the files to listparameters
-
NoSuchCommandScmException
- unless overriden by subclass
ScmException
protected LoginScmResult login(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
ScmProvider
remove
in interface ScmProvider
repository
- the source control systemfileSet
- the files to be removed
ScmException
ScmProvider.remove(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String)
protected RemoveScmResult remove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public StatusScmResult status(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider
ScmFileStatus
flags.
status
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the status about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.
ScmException
ScmProvider.status(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
protected StatusScmResult status(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName) throws ScmException
ScmProvider
tag
in interface ScmProvider
repository
- the source control systemfileSet
- the files to tag. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.tagName
- the tag name to apply to the files
ScmException
ScmProvider.tag(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String)
public TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, String message) throws ScmException
ScmProvider
tag
in interface ScmProvider
repository
- the source control systemfileSet
- the files to tag. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.tagName
- the tag name to apply to the filesmessage
- the commit message used for the tag creation
ScmException
ScmProvider.tag(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.lang.String)
protected TagScmResult tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider
ScmProvider.edit(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
.
It makes the file read-only again.
unedit
in interface ScmProvider
repository
- the source control systemfileSet
- the files to make uneditable
ScmException
ScmProvider.unedit(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
protected UnEditScmResult unedit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the tag
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, boolean runChangelog) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the tagrunChangelog
- Run the changelog command after the update
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,boolean)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copy
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyscmVersion
- use the version defined by the branch/tag/revision
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyrunChangelog
- Run the changelog command after the update
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,boolean)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, boolean runChangelog) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyscmVersion
- use the version defined by the branch/tag/revisionrunChangelog
- Run the changelog command after the update
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,boolean)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, String datePattern) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the tagdatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.lang.String)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String datePattern) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyscmVersion
- use the version defined by the branch/tag/revisiondatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,java.lang.String)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the tag
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.util.Date)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, Date lastUpdate) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyscmVersion
- use the version defined by the branch/tag/revision
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,java.util.Date)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate, String datePattern) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the taglastUpdate
- Date of last updatedatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,java.lang.String,java.util.Date,java.lang.String)
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, Date lastUpdate, String datePattern) throws ScmException
ScmProvider
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyscmVersion
- use the version defined by the branch/tag/revisionlastUpdate
- Date of last updatedatePattern
- the date pattern use in changelog output returned by scm tool
ScmException
ScmProvider.update(org.apache.maven.scm.repository.ScmRepository,org.apache.maven.scm.ScmFileSet,ScmVersion,java.util.Date,java.lang.String)
protected UpdateScmResult update(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmException
public void addListener(ScmLogger logger)
ScmProvider
addListener
in interface ScmProvider
logger
- The loggerScmProvider.addListener(org.apache.maven.scm.log.ScmLogger)
public ScmLogger getLogger()
public ScmProviderRepository makeProviderScmRepository(File path) throws ScmRepositoryException, UnknownRepositoryStructure
makeProviderScmRepository
in interface ScmProvider
ScmRepositoryException
UnknownRepositoryStructure
ScmProvider.makeProviderScmRepository(java.io.File)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |