public class GitCheckoutTask
extends org.apache.tools.ant.Task
| Constructor and Description |
|---|
GitCheckoutTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
setBranch(String branch)
Set
branch |
void |
setCreateBranch(boolean createBranch)
Set if branch should be created if not yet existing
|
void |
setForce(boolean force)
Set
force |
void |
setSrc(File src)
Set the
src |
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 setSrc(File src)
srcsrc - the src to setpublic void setBranch(String branch)
branchbranch - the initial branch to check outpublic void setCreateBranch(boolean createBranch)
createBranch - whether the branch should be created if it does not already
existpublic void setForce(boolean force)
forceforce - if true and the branch with the given name
already exists, the start-point of an existing branch will be
set to a new start-point; if false, the existing branch will
not be changedpublic 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.