org.eclipse.jgit.ant.tasks
Class GitCheckoutTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.eclipse.jgit.ant.tasks.GitCheckoutTask
All Implemented Interfaces:
java.lang.Cloneable

public class GitCheckoutTask
extends org.apache.tools.ant.Task

Checkout a branch or paths to the working tree.

See Also:
git-checkout(1)

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
GitCheckoutTask()
           
 
Method Summary
 void execute()
           
 void setBranch(java.lang.String branch)
           
 void setCreateBranch(boolean createBranch)
           
 void setForce(boolean force)
           
 void setSrc(java.io.File src)
           
 
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
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitCheckoutTask

public GitCheckoutTask()
Method Detail

setSrc

public void setSrc(java.io.File src)
Parameters:
src - the src to set

setBranch

public void setBranch(java.lang.String branch)
Parameters:
branch - the initial branch to check out

setCreateBranch

public void setCreateBranch(boolean createBranch)
Parameters:
createBranch - whether the branch should be created if it does not already exist

setForce

public void setForce(boolean force)
Parameters:
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 changed

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2011. All Rights Reserved.