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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> Fields inherited from class AbstractCommand
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 AbstractUntagCommand
executeCommandMethods inherited from class AbstractCommand
execute
-
Field Details
-
sshSessionFactorySupplier
private BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier
-
-
Constructor Details
-
JGitUntagCommand
public JGitUntagCommand()
-
-
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
-
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
-