Class JGitListCommand
java.lang.Object
org.apache.maven.scm.command.AbstractCommand
org.apache.maven.scm.command.list.AbstractListCommand
org.apache.maven.scm.provider.git.jgit.command.list.JGitListCommand
- All Implemented Interfaces:
Command, GitCommand
- 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 TypeMethodDescriptionprotected ListScmResultexecuteListCommand(ScmProviderRepository repo, ScmFileSet fileSet, boolean recursive, ScmVersion scmVersion) List contents of the remote repository.voidsetSshSessionFactorySupplier(BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier) Methods inherited from class AbstractListCommand
executeCommandMethods inherited from class AbstractCommand
execute
-
Field Details
-
sshSessionFactorySupplier
private BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier
-
-
Constructor Details
-
JGitListCommand
public JGitListCommand()
-
-
Method Details
-
setSshSessionFactorySupplier
public void setSshSessionFactorySupplier(BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier) -
executeListCommand
protected ListScmResult executeListCommand(ScmProviderRepository repo, ScmFileSet fileSet, boolean recursive, ScmVersion scmVersion) throws ScmException Description copied from class:AbstractListCommandList contents of the remote repository.- Specified by:
executeListCommandin classAbstractListCommand- Parameters:
repo- what to listfileSet- the files to listrecursive- whether list should return subfolder listingscmVersion- TODO- Returns:
- the list of files
- Throws:
ScmException- if any
-