Class CopyTask

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    MoveTask, SyncTask

    public class CopyTask
    extends AbstractSyncTask
    An Ant task that copies matching files.

    TODO - Copy folders that do not contain files.

    • Field Detail

      • overwrite

        private boolean overwrite
      • preserveLastModified

        private boolean preserveLastModified
    • Constructor Detail

      • CopyTask

        public CopyTask()
    • Method Detail

      • setOverwrite

        public void setOverwrite​(boolean overwrite)
        Enable/disable overwriting of up-to-date files.
        Parameters:
        overwrite - true if the file should be overwritten.
      • setPreserveLastModified

        public void setPreserveLastModified​(boolean preserveLastModified)
        Enable/disable preserving last modified time of copied files.
        Parameters:
        preserveLastModified - true if the last modified time should be preserved.
      • isOverwrite

        public boolean isOverwrite()
        Returns:
        the current value of overwrite
      • isPreserveLastModified

        public boolean isPreserveLastModified()
        Returns:
        the current value of preserveLastModified