Package org.apache.commons.vfs2.tasks
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
- All Implemented Interfaces:
- Cloneable
An Ant task that moves matching files.
 
TODO - Delete matching folders.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTaskAbstractSyncTask.SourceInfo
- 
Field SummaryFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidhandleOutOfDateFile(FileObject srcFile, FileObject destFile) Handles a single source file.voidsetTryRename(boolean tryRename) Enable/disable move/rename of file (if possible).Methods inherited from class org.apache.commons.vfs2.tasks.CopyTaskhandleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModifiedMethods inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTaskaddConfiguredSrc, detectMissingSourceFiles, execute, handleMissingSourceFile, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBaseMethods inherited from class org.apache.commons.vfs2.tasks.VfsTaskcloseManager, resolveFileMethods inherited from class org.apache.tools.ant.TaskbindToOwner, 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.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
MoveTaskpublic MoveTask()Constructs a new instance.
 
- 
- 
Method Details- 
handleOutOfDateFileprotected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException Handles a single source file.- Overrides:
- handleOutOfDateFilein class- CopyTask
- Parameters:
- srcFile- The source FileObject.
- destFile- The destination FileObject.
- Throws:
- FileSystemException
 
- 
setTryRenameEnable/disable move/rename of file (if possible).- Parameters:
- tryRename- true if the file should be renamed.
 
 
-