Package com.github.sardine.ant
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
- Author:
- jonstevens
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SardineTask() -
Method Summary
Modifier and Type Method Description voidaddCopy(Copy copy)Add a copy command.voidaddCreateDirectory(CreateDirectory createDirectory)Add a createDirectory command.voidaddDelete(Delete delete)Add a delete command.voidaddExists(Exists exists)Add a delete command.voidaddMove(Move move)Add a move command.voidaddPut(Put put)Add a put command.voidaddRecursiveGet(RecursiveGet get)Add a recursive get command.voidexecute()SardinegetSardine()Returns the sardine impl.booleanisFailonerror()Returns the fail on error behavior.voidsetDomain(String domain)Setter for attribute domain for NTLM authentication.voidsetFailonerror(boolean failonerror)Set the fail on error behavior.voidsetIgnoreCookies(boolean ignoreCookies)Setter for attribute ignoreCookies.voidsetPassword(String password)Setter for attribute password.voidsetPreemptiveAuthenticationHost(String host)Setter for attribute preemptiveAuthenticationHost.voidsetUsername(String username)Setter for attribute username.voidsetWorkstation(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
-
Constructor Details
-
SardineTask
public SardineTask()
-
-
Method Details
-
addCopy
Add a copy command. -
addCreateDirectory
Add a createDirectory command. -
addDelete
Add a delete command. -
addExists
Add a delete command. -
addMove
Add a move command. -
addPut
Add a put command. -
addRecursiveGet
Add a recursive get command. -
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
setFailonerror
public void setFailonerror(boolean failonerror)Set the fail on error behavior.- Parameters:
failonerror-trueto fail on the first error;falseto just log errors and continue
-
isFailonerror
public boolean isFailonerror()Returns the fail on error behavior.- Returns:
trueto fail on the first error;falseto just log errors and continue
-
setUsername
Setter for attribute username.- Parameters:
username- used for authentication
-
setPassword
Setter for attribute password.- Parameters:
password- used for authentication
-
setDomain
Setter for attribute domain for NTLM authentication.- Parameters:
domain- used for NTLM authentication
-
setWorkstation
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
Setter for attribute preemptiveAuthenticationHost.- Parameters:
host- name of the host to acivate the preemptive authentication for
-
getSardine
Returns the sardine impl.- Returns:
- the sardine impl
-