Class JGitUntagCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- org.apache.maven.scm.command.untag.AbstractUntagCommand
-
- org.apache.maven.scm.provider.git.jgit.command.untag.JGitUntagCommand
-
- All Implemented Interfaces:
Command,GitCommand,CustomizableSshSessionFactoryCommand
public class JGitUntagCommand extends AbstractUntagCommand implements GitCommand, CustomizableSshSessionFactoryCommand
Removes a tag.
-
-
Field Summary
-
Fields inherited from class org.apache.maven.scm.command.AbstractCommand
logger
-
-
Constructor Summary
Constructors Constructor Description JGitUntagCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScmResultexecuteUntagCommand(ScmProviderRepository repository, ScmFileSet fileSet, ScmUntagParameters scmUntagParameters)Execute untag command.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.untag.AbstractUntagCommand
executeCommand
-
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute
-
-
-
-
Constructor Detail
-
JGitUntagCommand
public JGitUntagCommand()
-
-
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
-
executeUntagCommand
protected ScmResult executeUntagCommand(ScmProviderRepository repository, ScmFileSet fileSet, ScmUntagParameters scmUntagParameters) throws ScmException
Description copied from class:AbstractUntagCommandExecute untag command.- Specified by:
executeUntagCommandin classAbstractUntagCommand- Parameters:
repository- scm repofileSet- set of files (unused)scmUntagParameters- parameters used by untag implementations- Returns:
- result of untag command
- Throws:
ScmException- in case of error
-
-