org.apache.tools.ant.taskdefs.optional

Class RenameExtensions

  • All Implemented Interfaces:
    java.lang.Cloneable, SelectorContainer

    Deprecated. 
    since 1.5.x. Use <move> instead

    public class RenameExtensions
    extends MatchingTask
    Version:
    1.2
    • Constructor Detail

      • RenameExtensions

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

      • 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.