public class CopyTask extends AbstractSyncTask
TODO - Copy folders that do not contain files.
AbstractSyncTask.SourceInfo
Constructor and Description |
---|
CopyTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
Handles an out-of-date file.
|
protected void |
handleUpToDateFile(FileObject srcFile,
FileObject destFile)
Handles an up-to-date file.
|
boolean |
isOverwrite() |
boolean |
isPreserveLastModified() |
void |
setOverwrite(boolean overwrite)
Enable/disable overwriting of up-to-date files.
|
void |
setPreserveLastModified(boolean preserveLastModified)
Enable/disable preserving last modified time of copied files.
|
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 setOverwrite(boolean overwrite)
overwrite
- true if the file should be overwritten.public void setPreserveLastModified(boolean preserveLastModified)
preserveLastModified
- true if the last modified time should be preserved.public boolean isOverwrite()
public boolean isPreserveLastModified()
protected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException
handleOutOfDateFile
in class AbstractSyncTask
srcFile
- The source FileObject.destFile
- The destination FileObject.FileSystemException
protected void handleUpToDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException
handleUpToDateFile
in class AbstractSyncTask
srcFile
- The source FileObject.destFile
- The destination FileObject.FileSystemException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.