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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> Fields inherited from class AbstractCommand
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteTagCommand(ScmProviderRepository repo, ScmFileSet fileSet, String tag, String message) executeTagCommand(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 AbstractTagCommand
executeCommandMethods inherited from class AbstractCommand
execute
-
Field Details
-
sshSessionFactorySupplier
private BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier
-
-
Constructor Details
-
JGitTagCommand
public JGitTagCommand()
-
-
Method Details
-
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
-