Groovy Documentation

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

java.lang.Object
  org.gradle.api.DefaultTask
      org.ajoberstar.gradle.git.tasks.GitBase
          org.ajoberstar.gradle.git.tasks.GitSource
              org.ajoberstar.gradle.git.tasks.GitCheckout

public class GitCheckout
extends GitSource

Task to checkout files and refs

Authors:
Evgeny Shepelyuk
Since:
0.3.0


Field Summary
 
Fields inherited from class GitSource
patternSet
 
Method Summary
java.lang.String getBranchName()

Gets the branch or commit name to check out.

boolean getCreateBranch()

Gets whether the branch being checked out should be created.

java.lang.String getStartPoint()

Gets the start point for the new branch being created.

void setBranchName(java.lang.String branchName)

Specify the name of the branch or commit to check out, or the new branch name.

void setCreateBranch(boolean createBranch)

Specify whether to create a new branch.

void setStartPoint(java.lang.String startPoint)

Set starting point for the new branch being created.

 
Methods inherited from class GitSource
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes
 
Methods inherited from class GitBase
getGit, getRepoDir, setRepoPath
 

Method Detail

getBranchName

public java.lang.String getBranchName()
Gets the branch or commit name to check out.
Returns:
name of branch or commit


getCreateBranch

public boolean getCreateBranch()
Gets whether the branch being checked out should be created.
Returns:
whether to create the branch


getStartPoint

public java.lang.String getStartPoint()
Gets the start point for the new branch being created.
Returns:
the name of the commit to start at


setBranchName

public void setBranchName(java.lang.String branchName)
Specify the name of the branch or commit to check out, or the new branch name.
Parameters:
branchName


setCreateBranch

public void setCreateBranch(boolean createBranch)
Specify whether to create a new branch.
Parameters:
createBranch


setStartPoint

public void setStartPoint(java.lang.String startPoint)
Set starting point for the new branch being created.
Parameters:
startPoint - the name of the commit to start at


 

Groovy Documentation