|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTask
org.apache.commons.vfs2.tasks.VfsTask
org.apache.commons.vfs2.tasks.AbstractSyncTask
org.apache.commons.vfs2.tasks.CopyTask
org.apache.commons.vfs2.tasks.MoveTask
public class MoveTask
An Ant task that moves matching files.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.commons.vfs2.tasks.AbstractSyncTask |
|---|
AbstractSyncTask.SourceInfo |
| Constructor Summary | |
|---|---|
MoveTask()
|
|
| Method Summary | |
|---|---|
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.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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MoveTask()
| Method Detail |
|---|
public void setTryRename(boolean tryRename)
tryRename - true if the file should be renamed.
protected void handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
throws FileSystemException
handleOutOfDateFile in class CopyTasksrcFile - The source FileObject.destFile - The destination FileObject.
FileSystemException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||