Class JGitCheckInCommand
- java.lang.Object
- 
- org.apache.maven.scm.command.AbstractCommand
- 
- org.apache.maven.scm.command.checkin.AbstractCheckInCommand
- 
- org.apache.maven.scm.provider.git.jgit.command.checkin.JGitCheckInCommand
 
 
 
- 
- All Implemented Interfaces:
- Command,- GitCommand,- CustomizableSshSessionFactoryCommand
 
 public class JGitCheckInCommand extends AbstractCheckInCommand implements GitCommand, CustomizableSshSessionFactoryCommand This provider uses the following strategy to discover the committer and author name/mail for a commit:- "user" section in .gitconfig
- "username" passed to maven execution
- default git config (system user and hostname for email)
 
 the default email domain to be used (will be used to create an email from the username passed to maven):
 git config --global maven-scm.maildomain mycomp.com
 you can also enforce the usage of the username for the author and committer:
 git config --global maven-scm.forceUsername true- Since:
- 1.9
- Author:
- Mark Struberg, Dominik Bartholdi (imod)
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static StringGIT_FORCEprotected static StringGIT_MAILDOMAINprotected static StringGIT_MAVEN_SECTION- 
Fields inherited from class org.apache.maven.scm.command.checkin.AbstractCheckInCommandNAME
 - 
Fields inherited from class org.apache.maven.scm.command.AbstractCommandlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description JGitCheckInCommand()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CheckInScmResultexecuteCheckInCommand(ScmProviderRepository repo, ScmFileSet fileSet, String message, ScmVersion version)CheckInScmResultexecuteCommand(ScmProviderRepository repo, ScmFileSet fileSet, CommandParameters parameters)voidsetSshSessionFactorySupplier(BiFunction<GitScmProviderRepository,org.slf4j.Logger,ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier)Sets a different supplier for the SSH session factory that will be used by this command.- 
Methods inherited from class org.apache.maven.scm.command.checkin.AbstractCheckInCommandexecuteCheckInCommand
 - 
Methods inherited from class org.apache.maven.scm.command.AbstractCommandexecute
 
- 
 
- 
- 
- 
Field Detail- 
GIT_MAVEN_SECTIONprotected static final String GIT_MAVEN_SECTION - See Also:
- Constant Field Values
 
 - 
GIT_MAILDOMAINprotected static final String GIT_MAILDOMAIN - See Also:
- Constant Field Values
 
 - 
GIT_FORCEprotected static final String GIT_FORCE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
JGitCheckInCommandpublic JGitCheckInCommand() 
 
- 
 - 
Method Detail- 
setSshSessionFactorySupplierpublic void setSshSessionFactorySupplier(BiFunction<GitScmProviderRepository,org.slf4j.Logger,ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier) Description copied from interface:CustomizableSshSessionFactoryCommandSets a different supplier for the SSH session factory that will be used by this command. By default it usesScmProviderAwareSshdSessionFactory.- Specified by:
- setSshSessionFactorySupplierin interface- CustomizableSshSessionFactoryCommand
- Parameters:
- sshSessionFactorySupplier- a function that takes a GitScmProviderRepository and Logger and returns a ScmProviderAwareSshdSessionFactory
 
 - 
executeCommandpublic CheckInScmResult executeCommand(ScmProviderRepository repo, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- executeCommandin class- AbstractCheckInCommand
- Throws:
- ScmException
 
 - 
executeCheckInCommandprotected CheckInScmResult executeCheckInCommand(ScmProviderRepository repo, ScmFileSet fileSet, String message, ScmVersion version) throws ScmException - Specified by:
- executeCheckInCommandin class- AbstractCheckInCommand
- Returns:
- Throws:
- ScmException
 
 
- 
 
-