Package com.github.sardine.ant.command
Class Exists
java.lang.Object
org.apache.tools.ant.ProjectComponent
com.github.sardine.ant.Command
com.github.sardine.ant.command.Exists
- All Implemented Interfaces:
Cloneable
public class Exists extends Command
A nice ant wrapper around sardine.exists(). Sets the property value to "true" if the resource at URL
exists.
- Author:
- Jon Stevens
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Exists() -
Method Summary
Modifier and Type Method Description protected voidexecute()Execute the command.voidsetProperty(String property)Set property to set if URL exists.voidsetUrl(String url)Set URL to check.protected voidvalidateAttributes()This is called prior toCommand.execute()in order to enable the command implementation to validate the provided attributes.
-
Constructor Details
-
Exists
public Exists()
-
-
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 URL to check. -
setProperty
Set property to set if URL exists.
-