Groovy Documentation

org.ajoberstar.gradle.git.tasks
[Java] Class GitPull

java.lang.Object
  org.gradle.api.DefaultTask
      org.ajoberstar.gradle.git.tasks.GitBase
          org.ajoberstar.gradle.git.tasks.GitPull
All Implemented Interfaces:
AuthenticationSupported

public class GitPull
extends GitBase

Task to incorporate changes from a remote repository into the current branch of a local Git repository.

Authors:
Alex Lixandru
Since:
0.2.1


Method Summary
void credentials(groovy.lang.Closure closure)

Configured the credentials to be used when pulling from the repo.

PasswordCredentials getCredentials()

Gets the credentials to be used when pulling from the repo.

void pullRepo()

Pulls changes from a remote Git repository and merges them into the current branch.

void setCredentials(PasswordCredentials credentials)

Sets the credentials to use when pulling from the repo.

 
Methods inherited from class GitBase
getGit, getRepoDir, setRepoPath
 

Method Detail

credentials

ssWarnings("rawtypes")
	public
public void credentials(groovy.lang.Closure closure)
Configured the credentials to be used when pulling from the repo. This will be passed a PasswordCredentials instance.
Parameters:
closure - the configuration closure


getCredentials

@Option
al
	public
public PasswordCredentials getCredentials()
Gets the credentials to be used when pulling from the repo.
Returns:
the credentials


pullRepo

tion
	public
public void pullRepo()
Pulls changes from a remote Git repository and merges them into the current branch.


setCredentials

public void setCredentials(PasswordCredentials credentials)
Sets the credentials to use when pulling from the repo.
Parameters:
credentials - the credentials


 

Groovy Documentation