|
||||||||||
| 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 | |
|---|---|
AddScmResult |
add(ScmRepository repository,
ScmFileSet fileSet)
Adds the given files to the source control system |
protected AddScmResult |
add(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
void |
addListener(ScmLogger logger)
|
protected ChangeLogScmResult |
changelog(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date startDate,
java.util.Date endDate,
int numDays,
java.lang.String branch)
Returns the changes that have happend in the source control system in a certain period of time. |
protected CheckInScmResult |
checkin(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag,
java.lang.String message)
Save the changes you have done into the repository. |
protected CheckOutScmResult |
checkout(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag)
Create a copy of the repository on your local machine |
protected DiffScmResult |
diff(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
DiffScmResult |
diff(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String startRevision,
java.lang.String endRevision)
|
EditScmResult |
edit(ScmRepository repository,
ScmFileSet fileSet)
Make a file editable. |
protected EditScmResult |
edit(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
ScmLogger |
getLogger()
|
protected LoginScmResult |
login(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
ScmProviderRepository |
makeProviderScmRepository(java.io.File path)
|
protected RemoveScmResult |
remove(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
RemoveScmResult |
remove(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String message)
Removes the given files from the source control system |
boolean |
requiresEditMode()
|
StatusScmResult |
status(ScmRepository repository,
ScmFileSet fileSet)
Returns the status of the files in the source control system. |
protected StatusScmResult |
status(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
protected TagScmResult |
tag(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
TagScmResult |
tag(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag)
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. |
protected UnEditScmResult |
unedit(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
protected UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag)
Updates the copy on the local machine with the changes in the repository |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag,
java.util.Date lastUpdate)
Updates the copy on the local machine with the changes in the repository |
java.util.List |
validateScmUrl(java.lang.String scmSpecificUrl,
char delimiter)
|
| 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 java.util.List validateScmUrl(java.lang.String scmSpecificUrl,
char delimiter)
validateScmUrl in interface ScmProviderpublic boolean requiresEditMode()
requiresEditMode in interface ScmProvider
public AddScmResult add(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
ScmProvider
add in interface ScmProviderrepository - the source control systemfileSet - the files to be added
AddScmResult that contains the files that have been added
ScmExceptionScmProvider.add(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet)
protected AddScmResult add(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public ChangeLogScmResult changeLog(ScmRepository repository,
ScmFileSet fileSet,
java.util.Date startDate,
java.util.Date endDate,
int numDays,
java.lang.String branch)
throws ScmException
ScmProvider
changeLog in interface ScmProviderrepository - 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 period
ScmExceptionScmProvider.changeLog(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.util.Date, java.util.Date, int, java.lang.String)
protected ChangeLogScmResult changelog(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public CheckInScmResult checkIn(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag,
java.lang.String message)
throws ScmException
ScmProvider
checkIn in interface ScmProviderrepository - 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
ScmExceptionScmProvider.checkIn(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.lang.String, java.lang.String)
protected CheckInScmResult checkin(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public CheckOutScmResult checkOut(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag)
throws ScmException
ScmProvider
checkOut in interface ScmProviderrepository - the source control systemfileSet - the files are copied to the ScmFileSet.getBasedir() locationtag - get the version defined by the tag
ScmExceptionScmProvider.checkOut(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.lang.String)
protected CheckOutScmResult checkout(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public DiffScmResult diff(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String startRevision,
java.lang.String endRevision)
throws ScmException
diff in interface ScmProviderScmExceptionScmProvider.diff(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.lang.String, java.lang.String)
protected DiffScmResult diff(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
protected LoginScmResult login(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public RemoveScmResult remove(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String message)
throws ScmException
ScmProvider
remove in interface ScmProviderrepository - the source control systemfileSet - the files to be removed
ScmExceptionScmProvider.remove(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.lang.String)
protected RemoveScmResult remove(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public StatusScmResult status(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
ScmProviderScmFileStatus flags.
status in interface ScmProviderrepository - the source control systemfileSet - the files to know the status about. Implementations can also give the changes
from the ScmFileSet.getBasedir() downwards.
ScmExceptionScmProvider.status(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet)
protected StatusScmResult status(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag)
throws ScmException
ScmProvider
tag in interface ScmProviderrepository - the source control systemfileSet - the files to tag. Implementations can also give the changes
from the ScmFileSet.getBasedir() downwards.tag - the tag to apply to the files
ScmExceptionScmProvider.tag(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.lang.String)
protected TagScmResult tag(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag)
throws ScmException
ScmProvider
update in interface ScmProviderrepository - the source control systemfileSet - location of your local copytag - use the version defined by the tag
ScmExceptionScmProvider.update(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.lang.String)
public UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
java.lang.String tag,
java.util.Date lastUpdate)
throws ScmException
ScmProvider
update in interface ScmProviderrepository - the source control systemfileSet - location of your local copytag - use the version defined by the tag
ScmExceptionScmProvider.update(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, java.lang.String, java.util.Date)
protected UpdateScmResult update(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public EditScmResult edit(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
ScmProvider
edit in interface ScmProviderrepository - the source control systemfileSet - the files to make editable
ScmException
protected EditScmResult edit(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmException
public UnEditScmResult unedit(ScmRepository repository,
ScmFileSet fileSet)
throws ScmException
ScmProviderScmProvider.edit(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet).
It makes the file read-only again.
unedit in interface ScmProviderrepository - the source control systemfileSet - the files to make uneditable
ScmException
protected UnEditScmResult unedit(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
throws ScmException
ScmExceptionpublic void addListener(ScmLogger logger)
addListener in interface ScmProviderScmProvider.addListener(org.apache.maven.scm.log.ScmLogger)public ScmLogger getLogger()
public ScmProviderRepository makeProviderScmRepository(java.io.File path)
throws ScmRepositoryException,
UnknownRepositoryStructure
makeProviderScmRepository in interface ScmProviderScmRepositoryException
UnknownRepositoryStructureorg.apache.maven.scm.provider.ScmProvider#makeProviderScmRepository(java.io.File, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||