Class SyncTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.commons.vfs.tasks.VfsTask
org.apache.commons.vfs.tasks.AbstractSyncTask
org.apache.commons.vfs.tasks.CopyTask
org.apache.commons.vfs.tasks.SyncTask
- All Implemented Interfaces:
Cloneable
A task that synchronises the destination folder to look exactly like
the source folder (or folders).
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
- Author:
- Adam Murdoch
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSyncTask
AbstractSyncTask.SourceInfo -
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier 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 CopyTask
handleOutOfDateFile, handleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModifiedMethods inherited from class AbstractSyncTask
addConfiguredSrc, execute, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBaseMethods inherited from class VfsTask
closeManager, resolveFileMethods inherited from class org.apache.tools.ant.Task
bindToOwner, 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.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
SyncTask
public SyncTask()
-
-
Method Details
-
handleMissingSourceFile
Handles a destination for which there is no corresponding source file.- Overrides:
handleMissingSourceFilein classAbstractSyncTask- Throws:
Exception
-
detectMissingSourceFiles
protected boolean detectMissingSourceFiles()Check if this task cares about destination files with a missing source file.- Overrides:
detectMissingSourceFilesin classAbstractSyncTask
-