Package org.apache.commons.vfs2.tasks
Class SyncTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.commons.vfs2.tasks.VfsTask
org.apache.commons.vfs2.tasks.AbstractSyncTask
org.apache.commons.vfs2.tasks.CopyTask
org.apache.commons.vfs2.tasks.SyncTask
- All Implemented Interfaces:
- Cloneable
A task that synchronizes the destination folder to look exactly like the source folder (or folders).
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTaskAbstractSyncTask.SourceInfo
- 
Field SummaryFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanCheck if this task cares about destination files with a missing source file.protected voidhandleMissingSourceFile(FileObject destFile) Handles a destination for which there is no corresponding source file.Methods inherited from class org.apache.commons.vfs2.tasks.CopyTaskhandleOutOfDateFile, handleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModifiedMethods inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTaskaddConfiguredSrc, execute, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBaseMethods inherited from class org.apache.commons.vfs2.tasks.VfsTaskcloseManager, resolveFileMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
SyncTaskpublic SyncTask()Constructs a new instance.
 
- 
- 
Method Details- 
detectMissingSourceFilesCheck if this task cares about destination files with a missing source file.- Overrides:
- detectMissingSourceFilesin class- AbstractSyncTask
- Returns:
- True if missing file is detected.
 
- 
handleMissingSourceFileHandles a destination for which there is no corresponding source file.- Overrides:
- handleMissingSourceFilein class- AbstractSyncTask
- Parameters:
- destFile- The existing destination file.
- Throws:
- Exception- Implementation can throw any Exception.
 
 
-