Package com.github.sardine.ant.command
Class RecursiveGet
java.lang.Object
org.apache.tools.ant.ProjectComponent
com.github.sardine.ant.Command
com.github.sardine.ant.command.RecursiveGet
- All Implemented Interfaces:
Cloneable
public class RecursiveGet extends Command
A nice ant wrapper around sardine.list() and sardine.get().
- Author:
- andreafonti
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RecursiveGet() -
Method Summary
Modifier and Type Method Description protected voidexecute()Execute the command.voidsetLocalDirectory(String localDirectory)voidsetOverwriteFiles(boolean overwriteFiles)voidsetRemoteDirectory(String remoteDirectory)voidsetServerUrl(String serverUrl)voidsetSkipExistingFiles(boolean skipExistingFiles)protected voidvalidateAttributes()This is called prior toCommand.execute()in order to enable the command implementation to validate the provided attributes.
-
Constructor Details
-
RecursiveGet
public RecursiveGet()
-
-
Method Details
-
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
-
execute
Execute the command. -
setServerUrl
-
setRemoteDirectory
-
setLocalDirectory
-
setOverwriteFiles
public void setOverwriteFiles(boolean overwriteFiles) -
setSkipExistingFiles
public void setSkipExistingFiles(boolean skipExistingFiles)
-