Class CopyTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MoveTask, SyncTask

public class CopyTask extends AbstractSyncTask
An Ant task that copies matching files.
Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
Author:
Adam Murdoch
  • Constructor Details

    • CopyTask

      public CopyTask()
  • Method Details

    • setOverwrite

      public void setOverwrite(boolean overwrite)
      Enable/disable overwriting of up-to-date files.
    • setPreserveLastModified

      public void setPreserveLastModified(boolean preserveLastModified)
      Enable/disable preserving last modified time of copied files.
    • isOverwrite

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

      public boolean isPreserveLastModified()
      Returns:
      the curent value of preserveLastModified
    • handleOutOfDateFile

      protected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException
      Handles an out-of-date file.
      Overrides:
      handleOutOfDateFile in class AbstractSyncTask
      Throws:
      FileSystemException
    • handleUpToDateFile

      protected void handleUpToDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException
      Handles an up-to-date file.
      Overrides:
      handleUpToDateFile in class AbstractSyncTask
      Throws:
      FileSystemException