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().
  • Constructor Details

    • RecursiveGet

      public RecursiveGet()
  • Method Details

    • validateAttributes

      protected void validateAttributes() throws Exception
      This is called prior to Command.execute() in order to enable the command implementation to validate the provided attributes.
      Specified by:
      validateAttributes in class Command
      Throws:
      Exception - if the command is misconfigured
    • execute

      protected void execute() throws Exception
      Execute the command.
      Specified by:
      execute in class Command
      Throws:
      Exception - if the command failed
    • setServerUrl

      public void setServerUrl(String serverUrl)
    • setRemoteDirectory

      public void setRemoteDirectory(String remoteDirectory)
    • setLocalDirectory

      public void setLocalDirectory(String localDirectory)
    • setOverwriteFiles

      public void setOverwriteFiles(boolean overwriteFiles)
    • setSkipExistingFiles

      public void setSkipExistingFiles(boolean skipExistingFiles)