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
A nice ant wrapper around sardine.list() and sardine.get().
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()Execute the command.voidsetLocalDirectory(String localDirectory) voidsetOverwriteFiles(boolean overwriteFiles) voidsetRemoteDirectory(String remoteDirectory) voidsetServerUrl(String serverUrl) voidsetSkipExistingFiles(boolean skipExistingFiles) protected voidThis is called prior toCommand.execute()in order to enable the command implementation to validate the provided attributes.Methods inherited from class Command
executeCommand, getSardine, setTaskMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
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
-
setServerUrl
-
setRemoteDirectory
-
setLocalDirectory
-
setOverwriteFiles
public void setOverwriteFiles(boolean overwriteFiles) -
setSkipExistingFiles
public void setSkipExistingFiles(boolean skipExistingFiles)
-