public abstract class ConfigurableFileCopyTask extends FileCopyTask implements ConfigurableTask
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cleanup |
completeDirMap, destDir, destFile, dirCopyMap, failonerror, file, fileCopyMap, filesets, flatten, forceOverwrite, includeEmpty, mapperElement, preserveLastModified| Constructor and Description |
|---|
ConfigurableFileCopyTask() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doFileOperation(File oldFile,
File newFile,
File toFile,
boolean patchPreserveEntries,
boolean patchPreserveValues,
boolean patchResolveVariables)
Do a patch operation.
|
protected void |
doFileOperations()
Actually does the file (and possibly empty directory) copies.
|
void |
setCleanup(boolean cleanup)
Whether to delete the patchfiles after the operation
|
void |
setPatchPreserveEntries(boolean preserveEntries)
Whether to preserve equal entries but not necessarily their values from an old configuration,
if they can be found (default: true).
|
void |
setPatchPreserveValues(boolean preserveValues)
Whether to preserve the values of equal entries from an old configuration, if they can be
found (default: true).
|
void |
setPatchResolveExpressions(boolean resolve)
Whether variables should be resolved during patching.
|
add, addFileSet, buildMap, createMapper, execute, getPreserveLastModified, isEnableMultipleMapping, scan, setEnableMultipleMappings, setFailOnError, setFile, setFlatten, setGranularity, setIncludeEmptyDirs, setOverwrite, setPreserveLastModified, setToDir, setToFile, validateAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic void setPatchPreserveEntries(boolean preserveEntries)
preserveEntries - - true to preserve equal entries from an old configurationpublic void setPatchPreserveValues(boolean preserveValues)
preserveValues - - true to preserve the values of equal entries from an old
configurationpublic void setPatchResolveExpressions(boolean resolve)
resolve - - true to resolve in-value variablespublic void setCleanup(boolean cleanup)
cleanup - True, if the patchfiles should be deleted after the operationprotected abstract void doFileOperation(File oldFile, File newFile, File toFile, boolean patchPreserveEntries, boolean patchPreserveValues, boolean patchResolveVariables) throws Exception
oldFile - original file to patch fromnewFile - newer reference file to patch certain values or entries totoFile - output file of the patched resultpatchPreserveEntries - set true to reserve old entriespatchPreserveValues - set true to reserver old valuespatchResolveVariables - set true to resolve in-text variables during patchingExceptionprotected void doFileOperations()
throws Exception
FileCopyTaskdoFileOperations in class FileCopyTaskExceptionCopyright © 2001–2025. All rights reserved.