public class GitCloneTask
extends org.apache.tools.ant.Task
Constructor and Description |
---|
GitCloneTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
setBare(boolean bare) |
void |
setBranch(String branch) |
void |
setDest(File destination)
The optional directory associated with the clone operation.
|
void |
setUri(String uri) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setUri(String uri)
uri
- the uri to clone frompublic void setDest(File destination)
destination
- the directory to clone toURIish.getHumanishName()
public void setBare(boolean bare)
bare
- whether the cloned repository is bare or notpublic void setBranch(String branch)
branch
- the initial branch to check out when cloning the repositorypublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright © 2016 Eclipse JGit Project. All rights reserved.