Class JGitCheckOutCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
-
- org.apache.maven.scm.provider.git.jgit.command.checkout.JGitCheckOutCommand
-
- All Implemented Interfaces:
Command,GitCommand
public class JGitCheckOutCommand extends AbstractCheckOutCommand implements GitCommand
- Since:
- 1.9
-
-
Constructor Summary
Constructors Constructor Description JGitCheckOutCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CheckOutScmResultexecuteCheckOutCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion version, boolean recursive, boolean shallow)For git, the given repository is a remote one.-
Methods inherited from class org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
executeCheckOutCommand, executeCommand
-
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute, getLogger, setLogger
-
-
-
-
Method Detail
-
executeCheckOutCommand
protected CheckOutScmResult executeCheckOutCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion version, boolean recursive, boolean shallow) throws ScmException
For git, the given repository is a remote one. We have to clone it first if the working directory does not contain a git repo yet, otherwise we have to git-pull it. Execute Check out command line.- Specified by:
executeCheckOutCommandin classAbstractCheckOutCommand- Parameters:
repo- not nullfileSet- not nullversion- not nullrecursive-trueif recursive check out is wanted,falseotherwise.shallow-trueif shallow check out is wanted,falseotherwise.- Returns:
- the checkout result
- Throws:
ScmException- if any
-
-