Class SardineTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.github.sardine.ant.SardineTask
All Implemented Interfaces:
Cloneable

public class SardineTask extends org.apache.tools.ant.Task
Controller for the Sardine ant Task
  • 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCopy(Copy copy)
    Add a copy command.
    void
    Add a createDirectory command.
    void
    addDelete(Delete delete)
    Add a delete command.
    void
    addExists(Exists exists)
    Add a delete command.
    void
    addMove(Move move)
    Add a move command.
    void
    addPut(Put put)
    Add a put command.
    void
    Add a recursive get command.
    void
    Returns the sardine impl.
    boolean
    Returns the fail on error behavior.
    void
    setDomain(String domain)
    Setter for attribute domain for NTLM authentication.
    void
    setFailonerror(boolean failonerror)
    Set the fail on error behavior.
    void
    setIgnoreCookies(boolean ignoreCookies)
    Setter for attribute ignoreCookies.
    void
    setPassword(String password)
    Setter for attribute password.
    void
    Setter for attribute preemptiveAuthenticationHost.
    void
    setUsername(String username)
    Setter for attribute username.
    void
    setWorkstation(String workstation)
    Setter for attribute workstation for NTLM authentication.

    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 Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SardineTask

      public SardineTask()
  • Method Details

    • addCopy

      public void addCopy(Copy copy)
      Add a copy command.
    • addCreateDirectory

      public void addCreateDirectory(CreateDirectory createDirectory)
      Add a createDirectory command.
    • addDelete

      public void addDelete(Delete delete)
      Add a delete command.
    • addExists

      public void addExists(Exists exists)
      Add a delete command.
    • addMove

      public void addMove(Move move)
      Add a move command.
    • addPut

      public void addPut(Put put)
      Add a put command.
    • addRecursiveGet

      public void addRecursiveGet(RecursiveGet get)
      Add a recursive get command.
    • 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
    • setFailonerror

      public void setFailonerror(boolean failonerror)
      Set the fail on error behavior.
      Parameters:
      failonerror - true to fail on the first error; false to just log errors and continue
    • isFailonerror

      public boolean isFailonerror()
      Returns the fail on error behavior.
      Returns:
      true to fail on the first error; false to just log errors and continue
    • setUsername

      public void setUsername(String username)
      Setter for attribute username.
      Parameters:
      username - used for authentication
    • setPassword

      public void setPassword(String password)
      Setter for attribute password.
      Parameters:
      password - used for authentication
    • setDomain

      public void setDomain(String domain)
      Setter for attribute domain for NTLM authentication.
      Parameters:
      domain - used for NTLM authentication
    • setWorkstation

      public void setWorkstation(String workstation)
      Setter for attribute workstation for NTLM authentication.
      Parameters:
      workstation - used for NTLM authentication
    • setIgnoreCookies

      public void setIgnoreCookies(boolean ignoreCookies)
      Setter for attribute ignoreCookies.
      Parameters:
      ignoreCookies - to ignore cookies.
    • setPreemptiveAuthenticationHost

      public void setPreemptiveAuthenticationHost(String host)
      Setter for attribute preemptiveAuthenticationHost.
      Parameters:
      host - name of the host to acivate the preemptive authentication for
    • getSardine

      public Sardine getSardine()
      Returns the sardine impl.
      Returns:
      the sardine impl