Package org.eclipse.jgit.ant.tasks
Class GitCloneTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.eclipse.jgit.ant.tasks.GitCloneTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class GitCloneTask extends org.apache.tools.ant.TaskClone a repository into a new directory.- See Also:
- git-clone(1)
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbareprivate java.lang.Stringbranchprivate java.io.Filedestinationprivate java.lang.Stringuri
-
Constructor Summary
Constructors Constructor Description GitCloneTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidsetBare(boolean bare)SetbarevoidsetBranch(java.lang.String branch)Set thebranchvoidsetDest(java.io.File destination)The optional directory associated with the clone operation.voidsetUri(java.lang.String uri)Set theuri.-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setUri
public void setUri(java.lang.String uri)
Set theuri.- Parameters:
uri- the uri to clone from
-
setDest
public void setDest(java.io.File destination)
The optional directory associated with the clone operation. If the directory isn't set, a name associated with the source uri will be used.- Parameters:
destination- the directory to clone to- See Also:
URIish.getHumanishName()
-
setBare
public void setBare(boolean bare)
Setbare- Parameters:
bare- whether the cloned repository is bare or not
-
setBranch
public void setBranch(java.lang.String branch)
Set thebranch- Parameters:
branch- the initial branch to check out when cloning the repository
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-