Class AbstractGitScmProvider
- java.lang.Object
- 
- org.apache.maven.scm.provider.AbstractScmProvider
- 
- org.apache.maven.scm.provider.git.AbstractGitScmProvider
 
 
- 
- All Implemented Interfaces:
- ScmProvider
 - Direct Known Subclasses:
- GitExeScmProvider,- JGitScmProvider
 
 public abstract class AbstractGitScmProvider extends AbstractScmProvider SCM Provider for git.- Author:
- Emmanuel Venisse
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.maven.scm.provider.AbstractScmProviderlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractGitScmProvider()
 - 
Method Summary- 
Methods inherited from class org.apache.maven.scm.provider.AbstractScmProvideradd, 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, validateTagName
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.maven.scm.provider.ScmProvidersetInteractive
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractGitScmProviderpublic AbstractGitScmProvider() 
 
- 
 - 
Method Detail- 
getScmSpecificFilenamepublic String getScmSpecificFilename() Returns the scm reserved file name where the SCM stores information like '.git', '.svn'.- Specified by:
- getScmSpecificFilenamein interface- ScmProvider
- Overrides:
- getScmSpecificFilenamein class- AbstractScmProvider
- Returns:
- the scm reserved file name
 
 - 
makeProviderScmRepositorypublic ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl, char delimiter) throws ScmRepositoryException - Throws:
- ScmRepositoryException
 
 - 
makeProviderScmRepositorypublic ScmProviderRepository makeProviderScmRepository(File path) throws ScmRepositoryException, UnknownRepositoryStructure Try to create aScmProviderRepositoryfor this provider from the given working directory (created through a previous checkout). This is only successful if the working directory is recognized by this SCM provider.- Specified by:
- makeProviderScmRepositoryin interface- ScmProvider
- Overrides:
- makeProviderScmRepositoryin class- AbstractScmProvider
- Parameters:
- path- the checkout(working) directory
- Returns:
- the repository bound to this provider
- Throws:
- ScmRepositoryException- in case the given directory does not contain a valid working directory recognized by this provider
- UnknownRepositoryStructure- in case the provider does not support this way of initializing an ScmProviderRepository
 
 - 
getRepositoryURLprotected abstract String getRepositoryURL(File path) throws ScmException - Throws:
- ScmException
 
 - 
validateScmUrlpublic List<String> validateScmUrl(String scmSpecificUrl, char delimiter) Validate the scm url.- Specified by:
- validateScmUrlin interface- ScmProvider
- Overrides:
- validateScmUrlin class- AbstractScmProvider
- Parameters:
- scmSpecificUrl- the SCM url
- delimiter- the delimiter used in the SCM url
- Returns:
- returns a list of messages if the validation failed
 
 - 
getScmTypepublic String getScmType() 
 - 
getAddCommandprotected abstract GitCommand getAddCommand() 
 - 
addpublic AddScmResult add(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException TODO: why public? This should be protected, no?- Overrides:
- addin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getBranchCommandprotected abstract GitCommand getBranchCommand() 
 - 
branchprotected BranchScmResult branch(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- branchin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getChangeLogCommandprotected abstract GitCommand getChangeLogCommand() 
 - 
changelogpublic ChangeLogScmResult changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- changelogin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getCheckInCommandprotected abstract GitCommand getCheckInCommand() 
 - 
checkinpublic CheckInScmResult checkin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- checkinin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Description copied from interface:ScmProviderSave 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:
- checkInin interface- ScmProvider
- Overrides:
- checkInin class- AbstractScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to check in (sometimes called commit)
- parameters-- CommandParameters
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
getCheckOutCommandprotected abstract GitCommand getCheckOutCommand() 
 - 
checkoutpublic CheckOutScmResult checkout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- checkoutin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getDiffCommandprotected abstract GitCommand getDiffCommand() 
 - 
diffpublic DiffScmResult diff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- diffin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getExportCommandprotected abstract GitCommand getExportCommand() 
 - 
exportprotected ExportScmResult export(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- exportin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getRemoveCommandprotected abstract GitCommand getRemoveCommand() 
 - 
removepublic RemoveScmResult remove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- removein class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getStatusCommandprotected abstract GitCommand getStatusCommand() 
 - 
statuspublic StatusScmResult status(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- statusin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getTagCommandprotected abstract GitCommand getTagCommand() 
 - 
tagpublic TagScmResult tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- tagin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getUntagCommandprotected abstract GitCommand getUntagCommand() 
 - 
untagpublic UntagScmResult untag(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Deletes a tag.- Specified by:
- untagin interface- ScmProvider
- Overrides:
- untagin class- AbstractScmProvider
- Parameters:
- repository- the source control system
- fileSet- a fileset with the relevant working directory as basedir
- parameters- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
getUpdateCommandprotected abstract GitCommand getUpdateCommand() 
 - 
updatepublic UpdateScmResult update(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- updatein class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
executeCommandprotected ScmResult executeCommand(GitCommand command, ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
getInfoCommandprotected abstract GitCommand getInfoCommand() 
 - 
infopublic InfoScmResult info(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- infoin interface- ScmProvider
- Overrides:
- infoin class- AbstractScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- parameters- some parameters (not use currently but for future use)
- Returns:
- if the scm implementation doesn't support "info" result will null
- Throws:
- ScmException- if any
 
 - 
blameprotected BlameScmResult blame(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- blamein class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
getBlameCommandprotected abstract GitCommand getBlameCommand() 
 - 
remoteInfopublic RemoteInfoScmResult remoteInfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- remoteInfoin interface- ScmProvider
- Overrides:
- remoteInfoin class- AbstractScmProvider
- Parameters:
- repository- the source control system
- fileSet- not use currently but for future use
- parameters- some parameters (not use currently but for future use)
- Returns:
- if the scm implementation doesn't support "info" result will null
- Throws:
- ScmException- if any
 
 - 
getRemoteInfoCommandprotected abstract GitCommand getRemoteInfoCommand() 
 
- 
 
-