Package org.apache.commons.vfs.tasks
Class MoveTask
- 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.MoveTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class MoveTask extends CopyTask
An Ant task that moves matching files.- 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 org.apache.commons.vfs.tasks.AbstractSyncTask
AbstractSyncTask.SourceInfo
-
-
Constructor Summary
Constructors Constructor Description MoveTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.vfs.tasks.CopyTask
handleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModified
-
Methods inherited from class org.apache.commons.vfs.tasks.AbstractSyncTask
addConfiguredSrc, detectMissingSourceFiles, execute, handleMissingSourceFile, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBase
-
Methods inherited from class org.apache.commons.vfs.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
-
-
-
-
Method Detail
-
setTryRename
public void setTryRename(boolean tryRename)
Enable/disable move/rename of file (if possible)
-
handleOutOfDateFile
protected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException
Handles a single source file.- Overrides:
handleOutOfDateFile
in classCopyTask
- Throws:
FileSystemException
-
-