Contents
Class MoveTask
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.MoveTask
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTask
AbstractSyncTask.SourceInfo
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleOutOfDateFile
(FileObject srcFile, FileObject destFile) Handles a single source file.void
setTryRename
(boolean tryRename) Enable/disable move/rename of file (if possible).Methods inherited from class org.apache.commons.vfs2.tasks.CopyTask
handleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModified
Methods inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTask
addConfiguredSrc, detectMissingSourceFiles, execute, handleMissingSourceFile, 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 Details
-
MoveTask
public MoveTask()Constructs a new instance.
-
-
Method Details
-
handleOutOfDateFile
protected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException Handles a single source file.- Overrides:
handleOutOfDateFile
in classCopyTask
- Parameters:
srcFile
- The source FileObject.destFile
- The destination FileObject.- Throws:
FileSystemException
-
setTryRename
Enable/disable move/rename of file (if possible).- Parameters:
tryRename
- true if the file should be renamed.
-