Package com.github.sardine.ant.command
Class CreateDirectory
java.lang.Object
org.apache.tools.ant.ProjectComponent
com.github.sardine.ant.Command
com.github.sardine.ant.command.CreateDirectory
- All Implemented Interfaces:
Cloneable
public class CreateDirectory extends Command
A nice ant wrapper around sardine.createDirectory().
- Author:
- Jon Stevens
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CreateDirectory() -
Method Summary
Modifier and Type Method Description protected voidexecute()Execute the command.voidsetUrl(String url)Set the URL to create.protected voidvalidateAttributes()This is called prior toCommand.execute()in order to enable the command implementation to validate the provided attributes.
-
Constructor Details
-
CreateDirectory
public CreateDirectory()
-
-
Method Details
-
execute
Execute the command. -
validateAttributes
This is called prior toCommand.execute()in order to enable the command implementation to validate the provided attributes.- Specified by:
validateAttributesin classCommand- Throws:
Exception- if the command is misconfigured
-
setUrl
Set the URL to create.
-