Class MoveTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
All Implemented Interfaces:
Cloneable

public class MoveTask extends CopyTask
An Ant task that moves matching files.

TODO - Delete matching folders.

  • Field Details

    • tryRename

      private boolean tryRename
  • Constructor Details

    • MoveTask

      public MoveTask()
  • Method Details

    • setTryRename

      public void setTryRename(boolean tryRename)
      Enable/disable move/rename of file (if possible).
      Parameters:
      tryRename - true if the file should be renamed.
    • handleOutOfDateFile

      protected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException
      Handles a single source file.
      Overrides:
      handleOutOfDateFile in class CopyTask
      Parameters:
      srcFile - The source FileObject.
      destFile - The destination FileObject.
      Throws:
      FileSystemException