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)
Set
bare |
void |
setBranch(String branch)
Set the
branch |
void |
setDest(File destination)
The optional directory associated with the clone operation.
|
void |
setUri(String uri)
Set the
uri. |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setUri(String uri)
uri.uri - the uri to clone frompublic void setDest(File destination)
destination - the directory to clone toURIish.getHumanishName()public void setBare(boolean bare)
barebare - whether the cloned repository is bare or notpublic void setBranch(String branch)
branchbranch - 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.Taskorg.apache.tools.ant.BuildExceptionCopyright © 2020 Eclipse JGit Project. All rights reserved.