Class JGitTagCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- org.apache.maven.scm.command.tag.AbstractTagCommand
-
- org.apache.maven.scm.provider.git.jgit.command.tag.JGitTagCommand
-
- All Implemented Interfaces:
Command,GitCommand,CustomizableSshSessionFactoryCommand
public class JGitTagCommand extends AbstractTagCommand implements GitCommand, CustomizableSshSessionFactoryCommand
- Since:
- 1.9
- Author:
- Mark Struberg, Dominik Bartholdi (imod)
-
-
Field Summary
-
Fields inherited from class org.apache.maven.scm.command.AbstractCommand
logger
-
-
Constructor Summary
Constructors Constructor Description JGitTagCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScmResultexecuteTagCommand(ScmProviderRepository repo, ScmFileSet fileSet, String tag, String message)ScmResultexecuteTagCommand(ScmProviderRepository repo, ScmFileSet fileSet, String tag, ScmTagParameters scmTagParameters)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.tag.AbstractTagCommand
executeCommand
-
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute
-
-
-
-
Constructor Detail
-
JGitTagCommand
public JGitTagCommand()
-
-
Method Detail
-
setSshSessionFactorySupplier
public 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 interfaceCustomizableSshSessionFactoryCommand- Parameters:
sshSessionFactorySupplier- a function that takes a GitScmProviderRepository and Logger and returns a ScmProviderAwareSshdSessionFactory
-
executeTagCommand
public ScmResult executeTagCommand(ScmProviderRepository repo, ScmFileSet fileSet, String tag, String message) throws ScmException
- Overrides:
executeTagCommandin classAbstractTagCommand- Parameters:
repo- TODOfileSet- TODOtag- TODOmessage- TODO- Returns:
- TODO
- Throws:
ScmException- if any
-
executeTagCommand
public ScmResult executeTagCommand(ScmProviderRepository repo, ScmFileSet fileSet, String tag, ScmTagParameters scmTagParameters) throws ScmException
- Specified by:
executeTagCommandin classAbstractTagCommand- Throws:
ScmException
-
-