Class Command
java.lang.Object
org.apache.tools.ant.ProjectComponent
com.github.sardine.ant.Command
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
Copy, CreateDirectory, Delete, Exists, Move, Put, RecursiveGet
public abstract class Command
extends org.apache.tools.ant.ProjectComponent
Base class for a Command which represents a sardine command
such as sardine.put().
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidexecute()Execute the command.final voidCheck the command attribute and execute it.protected final SardineReturns the Sardine for this command.final voidsetTask(SardineTask task) Sets the SardineTaskprotected abstract voidThis is called prior toexecute()in order to enable the command implementation to validate the provided attributes.Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
validateAttributes
-
execute
-
executeCommand
-
setTask
Sets the SardineTask -
getSardine
Returns the Sardine for this command.- Returns:
- the Sardine for this command
-