| org.apache.commons.vfs.tasks.VfsTask org.apache.commons.vfs.tasks.AbstractSyncTask
All known Subclasses: org.apache.commons.vfs.tasks.CopyTask,
AbstractSyncTask | abstract public class AbstractSyncTask extends VfsTask (Code) | | An abstract file synchronization task. Scans a set of source files and
folders, and a destination folder, and performs actions on missing and
out-of-date files. Specifically, performs actions on the following:
- Missing destination file.
- Missing source file.
- Out-of-date destination file.
- Up-to-date destination file.
author: Adam Murdoch version: $Revision: 480428 $ $Date: 2006-11-28 22:15:24 -0800 (Tue, 28 Nov 2006) $ |
Inner Class :public static class SourceInfo | |
addConfiguredSrc | public void addConfiguredSrc(SourceInfo srcInfo) throws BuildException(Code) | | Adds a nested element.
|
detectMissingSourceFiles | protected boolean detectMissingSourceFiles()(Code) | | Check if this task cares about destination files with a missing source
file. This implementation returns false.
|
execute | public void execute() throws BuildException(Code) | | Executes this task.
|
handleMissingSourceFile | protected void handleMissingSourceFile(FileObject destFile) throws Exception(Code) | | Handles a destination for which there is no corresponding source file.
This implementation does nothing.
|
handleOutOfDateFile | protected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws Exception(Code) | | Handles an out-of-date file (a file where the destination file
either doesn't exist, or is older than the source file).
This implementation does nothing.
|
handleUpToDateFile | protected void handleUpToDateFile(FileObject srcFile, FileObject destFile) throws Exception(Code) | | Handles an up-to-date file (where the destination file exists and is
newer than the source file). This implementation does nothing.
|
isFailonerror | public boolean isFailonerror()(Code) | | Sets whether we should fail if there was an error or not
|
logOrDie | protected void logOrDie(String message, int level)(Code) | | |
setDestDir | public void setDestDir(String destDir)(Code) | | Sets the destination directory.
|
setDestFile | public void setDestFile(String destFile)(Code) | | Sets the destination file.
|
setFailonerror | public void setFailonerror(boolean failonerror)(Code) | | Sets whether we should fail if there was an error or not
|
setIncludes | public void setIncludes(String filesList)(Code) | | Sets the files to includes
|
setSrc | public void setSrc(String srcFile)(Code) | | Sets the source file
|
setSrcDir | public void setSrcDir(String srcDir)(Code) | | Sets the source directory
|
setSrcDirIsBase | public void setSrcDirIsBase(boolean srcDirIsBase)(Code) | | Sets whether the source directory should be consider as the base directory.
|
|
|