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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTask
AbstractSyncTask.SourceInfo
-
-
Constructor Summary
Constructors Constructor Description SyncTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 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, setTaskType
-
-
-
-
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 classAbstractSyncTask
- Parameters:
destFile
- The existing destination file.- Throws:
java.lang.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 classAbstractSyncTask
- Returns:
- True if missing file is detected.
-
-