Class Rename

  • All Implemented Interfaces:
    java.lang.Cloneable

    @Deprecated
    public class Rename
    extends Task
    Deprecated.
    The rename task is deprecated since Ant 1.2. Use move instead.
    Renames a file.
    Since:
    Ant 1.1
    • Constructor Detail

      • Rename

        public Rename()
        Deprecated.
    • Method Detail

      • setSrc

        public void setSrc​(java.io.File src)
        Deprecated.
        Sets the file to be renamed.
        Parameters:
        src - the file to rename
      • setDest

        public void setDest​(java.io.File dest)
        Deprecated.
        Sets the new name of the file.
        Parameters:
        dest - the new name of the file.
      • setReplace

        public void setReplace​(java.lang.String replace)
        Deprecated.
        Sets whether an existing file should be replaced.
        Parameters:
        replace - on, if an existing file should be replaced.