public class CopyTask extends AbstractSyncTask
TODO - Copy folders that do not contain files.
AbstractSyncTask.SourceInfo| Constructor | Description |
|---|---|
CopyTask() |
| Modifier and Type | Method | 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, setSrcDirIsBaseequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypecloseManager, resolveFilepublic CopyTask()
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 AbstractSyncTasksrcFile - The source FileObject.destFile - The destination FileObject.FileSystemExceptionprotected void handleUpToDateFile(FileObject srcFile, FileObject destFile) throws FileSystemException
handleUpToDateFile in class AbstractSyncTasksrcFile - The source FileObject.destFile - The destination FileObject.FileSystemException