public class CopyTask extends AbstractSyncTask
TODO - Copy folders that do not contain files.
AbstractSyncTask.SourceInfo
Constructor and Description |
---|
CopyTask()
Constructs a new instance.
|
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()
Tests whether overwrite is enabled.
|
boolean |
isPreserveLastModified()
Tests whether preserve last modified is enabled.
|
void |
setOverwrite(boolean overwrite)
Enable/disable overwriting of up-to-date files.
|
void |
setPreserveLastModified(boolean preserveLastModified)
Sets preserving last modified time of copied files.
|
addConfiguredSrc, detectMissingSourceFiles, execute, handleMissingSourceFile, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBase
closeManager, resolveFile
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
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
public boolean isOverwrite()
public boolean isPreserveLastModified()
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.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.