|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.DefaultTask
org.ajoberstar.gradle.git.tasks.GitClone
public class GitClone extends DefaultTask
Task to clone a Git repository.
Method Summary | |
---|---|
void
|
branchesToClone(java.lang.Object... branches)
Adds branches to clone if cloneAllBranches is set to false. |
void
|
cloneRepo()
Clones a Git repository as configured. |
void
|
credentials(groovy.lang.Closure closure)
Configured the credentials to be used when cloning the repo. |
boolean
|
getBare()
Gets whether the repository will be bare. |
java.lang.String
|
getBranch()
Gets the branch to checkout if checkout is set to true. |
java.util.Collection
|
getBranchesToClone()
Gets the branches to clone if cloneAllBranches is set to false. |
boolean
|
getCheckout()
Gets whether or not to checkout the specified branch. |
boolean
|
getCloneAllBranches()
Gets whether all branches should be cloned. |
PasswordCredentials
|
getCredentials()
Gets the credentials to be used when cloning the repo. |
java.io.File
|
getDestinationDir()
Gets the destination directory the repository will be cloned into. |
java.lang.String
|
getRemote()
Gets the name used to track the upstream repository. |
java.lang.String
|
getUri()
Gets the URI of the repo to clone. |
void
|
setBare(boolean bare)
Sets whether the repository will be bare. |
void
|
setBranch(java.lang.Object branch)
Sets the branch to checkout if checkout is set to true. |
void
|
setBranchesToClone(java.util.Collection branchesToClone)
Sets branches to clone if cloneAllBranches is set to false. |
void
|
setCheckout(boolean checkout)
Sets whether or not to checkout the specified branch. |
void
|
setCloneAllBranches(boolean cloneAllBranches)
Sets whether all branches should be cloned. |
void
|
setCredentials(PasswordCredentials credentials)
Sets the credentials to use when cloning the repo. |
void
|
setDestinationPath(java.lang.Object destinationPath)
Sets the path the repository should be clone into. |
void
|
setRemote(java.lang.Object remote)
Sets the name used to track the upstream repository. |
void
|
setUri(java.lang.Object uri)
Sets the URI of the repo to clone. |
Method Detail |
---|
public void branchesToClone(java.lang.Object... branches)
branches
- the branches to clone
tion public public void cloneRepo()
ssWarnings("rawtypes") public public void credentials(groovy.lang.Closure closure)
closure
- the configuration closure
@Input public public boolean getBare()
@Input public public java.lang.String getBranch()
@Input public public java.util.Collection getBranchesToClone()
@Input public public boolean getCheckout()
@Input public public boolean getCloneAllBranches()
@Input @Option al public public PasswordCredentials getCredentials()
Directory public public java.io.File getDestinationDir()
@Input public public java.lang.String getRemote()
@Input public public java.lang.String getUri()
public void setBare(boolean bare)
bare
- whether the repo will be bare
public void setBranch(java.lang.Object branch)
branch
- the branch to checkout
ssWarnings("unchecked") public public void setBranchesToClone(java.util.Collection branchesToClone)
branchesToClone
- the branches to clone
public void setCheckout(boolean checkout)
checkout
- whether or not to checkout the branch
public void setCloneAllBranches(boolean cloneAllBranches)
cloneAllBranches
- whether all branches
should be cloned
public void setCredentials(PasswordCredentials credentials)
credentials
- the credentials
public void setDestinationPath(java.lang.Object destinationPath)
destinationPath
- the path to clone into
public void setRemote(java.lang.Object remote)
remote
- the remote name
public void setUri(java.lang.Object uri)
uri
- the uri
Groovy Documentation