Class RenameExtensions

All Implemented Interfaces:
Cloneable, SelectorContainer

@Deprecated public class RenameExtensions extends MatchingTask
Deprecated.
since 1.5.x. Use <move> instead
Version:
1.2
  • Constructor Details

    • RenameExtensions

      public RenameExtensions()
      Deprecated.
      Creates new RenameExtensions
  • Method Details

    • setFromExtension

      public void setFromExtension(String from)
      Deprecated.
      The string that files must end in to be renamed
      Parameters:
      from - the extension of files being renamed.
    • setToExtension

      public void setToExtension(String to)
      Deprecated.
      The string that renamed files will end with on completion
      Parameters:
      to - the extension of the renamed files.
    • setReplace

      public void setReplace(boolean replace)
      Deprecated.
      store replace attribute - this determines whether the target file should be overwritten if present
      Parameters:
      replace - if true overwrite any target files that exist.
    • setSrcDir

      public void setSrcDir(File srcDir)
      Deprecated.
      Set the source dir to find the files to be renamed.
      Parameters:
      srcDir - the source directory.
    • execute

      public void execute() throws BuildException
      Deprecated.
      Executes the task.
      Overrides:
      execute in class Task
      Throws:
      BuildException - is there is a problem in the task execution.