Class AbstractGitScmProvider
java.lang.Object
org.apache.maven.scm.provider.AbstractScmProvider
org.apache.maven.scm.provider.git.AbstractGitScmProvider
- All Implemented Interfaces:
ScmProvider
SCM Provider for git
- Author:
- Emmanuel Venisse
-
Field Summary
Fields inherited from class org.apache.maven.scm.provider.AbstractScmProvider
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) protected BlameScmResultblame(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) protected BranchScmResultbranch(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) checkin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) checkout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) diff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) protected ScmResultexecuteCommand(GitCommand command, ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) protected ExportScmResultexport(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) protected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract StringgetRepositoryURL(File path) protected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandprotected abstract GitCommandinfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) makeProviderScmRepository(String scmSpecificUrl, char delimiter) remoteInfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) remove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) status(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) untag(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) update(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) validateScmUrl(String scmSpecificUrl, char delimiter) Methods inherited from class org.apache.maven.scm.provider.AbstractScmProvider
add, add, add, blame, blame, branch, branch, branch, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, checkIn, checkIn, checkIn, checkOut, checkOut, checkOut, checkOut, checkOut, checkOut, checkOut, diff, diff, edit, edit, export, export, export, export, export, list, list, list, login, mkdir, mkdir, remove, requiresEditMode, sanitizeTagName, status, tag, tag, tag, unedit, unedit, update, update, update, update, update, update, update, update, update, update, update, update, validateTagNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.scm.provider.ScmProvider
setInteractive
-
Constructor Details
-
AbstractGitScmProvider
public AbstractGitScmProvider()
-
-
Method Details
-
getScmSpecificFilename
- Specified by:
getScmSpecificFilenamein interfaceScmProvider- Overrides:
getScmSpecificFilenamein classAbstractScmProvider
-
makeProviderScmRepository
public ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl, char delimiter) throws ScmRepositoryException - Throws:
ScmRepositoryException
-
makeProviderScmRepository
public ScmProviderRepository makeProviderScmRepository(File path) throws ScmRepositoryException, UnknownRepositoryStructure - Specified by:
makeProviderScmRepositoryin interfaceScmProvider- Overrides:
makeProviderScmRepositoryin classAbstractScmProvider- Throws:
ScmRepositoryExceptionUnknownRepositoryStructure
-
getRepositoryURL
- Throws:
ScmException
-
validateScmUrl
- Specified by:
validateScmUrlin interfaceScmProvider- Overrides:
validateScmUrlin classAbstractScmProvider
-
getScmType
-
getAddCommand
-
add
public AddScmResult add(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
addin classAbstractScmProvider- Throws:
ScmException
-
getBranchCommand
-
branch
protected BranchScmResult branch(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
branchin classAbstractScmProvider- Throws:
ScmException
-
getChangeLogCommand
-
changelog
public ChangeLogScmResult changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
changelogin classAbstractScmProvider- Throws:
ScmException
-
getCheckInCommand
-
checkin
public CheckInScmResult checkin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
checkinin classAbstractScmProvider- Throws:
ScmException
-
getCheckOutCommand
-
checkout
public CheckOutScmResult checkout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
checkoutin classAbstractScmProvider- Throws:
ScmException
-
getDiffCommand
-
diff
public DiffScmResult diff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
diffin classAbstractScmProvider- Throws:
ScmException
-
getExportCommand
-
export
protected ExportScmResult export(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
exportin classAbstractScmProvider- Throws:
ScmException
-
getRemoveCommand
-
remove
public RemoveScmResult remove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
removein classAbstractScmProvider- Throws:
ScmException
-
getStatusCommand
-
status
public StatusScmResult status(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
statusin classAbstractScmProvider- Throws:
ScmException
-
getTagCommand
-
tag
public TagScmResult tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
tagin classAbstractScmProvider- Throws:
ScmException
-
getUntagCommand
-
untag
public UntagScmResult untag(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
untagin interfaceScmProvider- Overrides:
untagin classAbstractScmProvider- Throws:
ScmException
-
getUpdateCommand
-
update
public UpdateScmResult update(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
updatein classAbstractScmProvider- Throws:
ScmException
-
executeCommand
protected ScmResult executeCommand(GitCommand command, ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
ScmException
-
getInfoCommand
-
info
public InfoScmResult info(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
infoin interfaceScmProvider- Overrides:
infoin classAbstractScmProvider- Throws:
ScmException
-
blame
protected BlameScmResult blame(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
blamein classAbstractScmProvider- Throws:
ScmException
-
getBlameCommand
-
remoteInfo
public RemoteInfoScmResult remoteInfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
remoteInfoin interfaceScmProvider- Overrides:
remoteInfoin classAbstractScmProvider- Throws:
ScmException
-
getRemoteInfoCommand
-