org.eclipse.jgit.api
Class SubmoduleUpdateCommand

java.lang.Object
  extended by org.eclipse.jgit.api.GitCommand<Collection<String>>
      extended by org.eclipse.jgit.api.SubmoduleUpdateCommand
All Implemented Interfaces:
Callable<Collection<String>>

public class SubmoduleUpdateCommand
extends GitCommand<Collection<String>>

A class used to execute a submodule update command.

See Also:
Git documentation about submodules

Field Summary
 
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
 
Constructor Summary
SubmoduleUpdateCommand(Repository repo)
           
 
Method Summary
 SubmoduleUpdateCommand addPath(String path)
          Add repository-relative submodule path to initialize
 Collection<String> call()
           
 SubmoduleUpdateCommand setCredentialsProvider(CredentialsProvider credentialsProvider)
           
 SubmoduleUpdateCommand setProgressMonitor(ProgressMonitor monitor)
          The progress monitor associated with the clone operation.
 
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmoduleUpdateCommand

public SubmoduleUpdateCommand(Repository repo)
Parameters:
repo -
Method Detail

setProgressMonitor

public SubmoduleUpdateCommand setProgressMonitor(ProgressMonitor monitor)
The progress monitor associated with the clone operation. By default, this is set to NullProgressMonitor

Parameters:
monitor -
Returns:
this command
See Also:
NullProgressMonitor

setCredentialsProvider

public SubmoduleUpdateCommand setCredentialsProvider(CredentialsProvider credentialsProvider)
Parameters:
credentialsProvider - the CredentialsProvider to use
Returns:
this command

addPath

public SubmoduleUpdateCommand addPath(String path)
Add repository-relative submodule path to initialize

Parameters:
path -
Returns:
this command

call

public Collection<String> call()
                        throws JGitInternalException
Throws:
JGitInternalException


Copyright © 2011. All Rights Reserved.