org.apache.commons.vfs2.tasks
Class SyncTask

java.lang.Object
  extended by Task
      extended by org.apache.commons.vfs2.tasks.VfsTask
          extended by org.apache.commons.vfs2.tasks.AbstractSyncTask
              extended by org.apache.commons.vfs2.tasks.CopyTask
                  extended by org.apache.commons.vfs2.tasks.SyncTask

public class SyncTask
extends CopyTask

A task that synchronises the destination folder to look exactly like the source folder (or folders).

Author:
Commons VFS team

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTask
AbstractSyncTask.SourceInfo
 
Constructor Summary
SyncTask()
           
 
Method Summary
protected  boolean detectMissingSourceFiles()
          Check if this task cares about destination files with a missing source file.
protected  void handleMissingSourceFile(FileObject destFile)
          Handles a destination for which there is no corresponding source file.
 
Methods inherited from class org.apache.commons.vfs2.tasks.CopyTask
handleOutOfDateFile, handleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModified
 
Methods inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTask
addConfiguredSrc, execute, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBase
 
Methods inherited from class org.apache.commons.vfs2.tasks.VfsTask
closeManager, resolveFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncTask

public SyncTask()
Method Detail

handleMissingSourceFile

protected void handleMissingSourceFile(FileObject destFile)
                                throws java.lang.Exception
Handles a destination for which there is no corresponding source file.

Overrides:
handleMissingSourceFile in class AbstractSyncTask
Throws:
java.lang.Exception

detectMissingSourceFiles

protected boolean detectMissingSourceFiles()
Check if this task cares about destination files with a missing source file.

Overrides:
detectMissingSourceFiles in class AbstractSyncTask