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, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a copy command.voidaddCreateDirectory(CreateDirectory createDirectory) Add a createDirectory command.voidAdd a delete command.voidAdd a delete command.voidAdd a move command.voidAdd a put command.voidAdd a recursive get command.voidexecute()Returns the sardine impl.booleanReturns the fail on error behavior.voidSetter 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.voidSetter 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
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
-