public abstract class Command
extends org.apache.tools.ant.ProjectComponent
| Constructor and Description |
|---|
Command() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
execute()
Execute the command.
|
void |
executeCommand()
Check the command attribute and execute it.
|
protected Sardine |
getSardine()
Returns the Sardine for this command.
|
void |
setTask(SardineTask task)
Sets the SardineTask
|
protected abstract void |
validateAttributes()
This is called prior to
execute() in order to enable the command implementation to validate
the provided attributes. |
protected abstract void validateAttributes()
throws Exception
execute() in order to enable the command implementation to validate
the provided attributes.Exception - if the command is misconfiguredprotected abstract void execute()
throws Exception
Exception - if the command failedpublic final void executeCommand()
throws Exception
Exception - if the command is misconfigured or failed for some other reasonpublic final void setTask(SardineTask task)
protected final Sardine getSardine()
Copyright © 2019. All rights reserved.