Class SyncTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
All Implemented Interfaces:
Cloneable

public class SyncTask extends CopyTask
A task that synchronises the destination folder to look exactly like the source folder (or folders).
  • Constructor Details

    • SyncTask

      public SyncTask()
  • Method Details

    • handleMissingSourceFile

      protected void handleMissingSourceFile(FileObject destFile) throws Exception
      Handles a destination for which there is no corresponding source file.
      Overrides:
      handleMissingSourceFile in class AbstractSyncTask
      Parameters:
      destFile - The existing destination file.
      Throws:
      Exception - Implementation can throw any Exception.
    • detectMissingSourceFiles

      protected boolean detectMissingSourceFiles()
      Check if this task cares about destination files with a missing source file.
      Overrides:
      detectMissingSourceFiles in class AbstractSyncTask
      Returns:
      True if missing file is detected.