|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
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 |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
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 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 |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
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 CopyTask
srcFile
- The source FileObject.destFile
- The destination FileObject.
FileSystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |