public class MoveTask extends CopyTask
TODO - Delete matching folders.
AbstractSyncTask.SourceInfo
Constructor and Description |
---|
MoveTask() |
Modifier and Type | Method and 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).
|
handleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModified
addConfiguredSrc, detectMissingSourceFiles, execute, handleMissingSourceFile, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBase
closeManager, resolveFile
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
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
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.