Class RenameExtensions

java.lang.Object
All Implemented Interfaces:
java.lang.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​(java.lang.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​(java.lang.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​(java.io.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.