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
public class JGitListCommand extends AbstractListCommand implements GitCommand
- Since:
- 1.9
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BiFunction<GitScmProviderRepository,org.slf4j.Logger,ScmProviderAwareSshdSessionFactory>sshSessionFactorySupplier-
Fields inherited from class org.apache.maven.scm.command.AbstractCommand
logger
-
-
Constructor Summary
Constructors Constructor Description JGitListCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ListScmResultexecuteListCommand(ScmProviderRepository repo, ScmFileSet fileSet, boolean recursive, ScmVersion scmVersion)List contents of the remote repository.voidsetSshSessionFactorySupplier(java.util.function.BiFunction<GitScmProviderRepository,org.slf4j.Logger,ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier)-
Methods inherited from class org.apache.maven.scm.command.list.AbstractListCommand
executeCommand
-
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute
-
-
-
-
Field Detail
-
sshSessionFactorySupplier
private java.util.function.BiFunction<GitScmProviderRepository,org.slf4j.Logger,ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier
-
-
Method Detail
-
setSshSessionFactorySupplier
public void setSshSessionFactorySupplier(java.util.function.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
-
-