com.github.sardine.ant.command.Delete Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sardine Show documentation
Show all versions of sardine Show documentation
An easy to use WebDAV client for Java
package com.github.sardine.ant.command;
import com.github.sardine.ant.Command;
/**
* A nice ant wrapper around sardine.delete().
*
* @author Jon Stevens
*/
public class Delete extends Command
{
/** To delete. */
private String url;
/**
* {@inheritDoc}
*/
@Override
protected void execute() throws Exception {
log("deleting " + url);
getSardine().delete(url);
}
/**
* {@inheritDoc}
*/
@Override
protected void validateAttributes() throws Exception {
if (url == null)
throw new IllegalArgumentException("url must not be null");
}
/** Set URL to delete. */
public void setUrl(String url) {
this.url = url;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy