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, setTaskType
public void setSrc(File src)
src
src
- the src to setpublic void setBranch(String branch)
branch
branch
- 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)
force
force
- 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.Task
org.apache.tools.ant.BuildException
Copyright © 2019 Eclipse JGit Project. All rights reserved.