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

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors 
    Constructor Description
    Exists()  
  • Method Summary

    Modifier and Type Method Description
    protected void execute()
    Execute the command.
    void setProperty​(String property)
    Set property to set if URL exists.
    void setUrl​(String url)
    Set URL to check.
    protected void validateAttributes()
    This is called prior to Command.execute() in order to enable the command implementation to validate the provided attributes.

    Methods inherited from class com.github.sardine.ant.Command

    executeCommand, getSardine, setTask

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait