Class Move

java.lang.Object
org.apache.tools.ant.ProjectComponent
com.github.sardine.ant.Command
com.github.sardine.ant.command.Move
All Implemented Interfaces:
Cloneable

public class Move extends Command
A nice ant wrapper around sardine.move().
  • Field Summary

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

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Execute the command.
    void
    setDstUrl(String dstUrl)
    Set the destination URL.
    void
    setSrcUrl(String srcUrl)
    Set the source URL.
    protected void
    This is called prior to Command.execute() in order to enable the command implementation to validate the provided attributes.

    Methods inherited from class 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 Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Move

      public Move()
  • Method Details

    • execute

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

      protected void validateAttributes() throws Exception
      Description copied from class: Command
      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
    • setSrcUrl

      public void setSrcUrl(String srcUrl)
      Set the source URL.
    • setDstUrl

      public void setDstUrl(String dstUrl)
      Set the destination URL.