public abstract class ConfigFileTask extends SingleConfigurableTask
SingleConfigurableTask.Entry, SingleConfigurableTask.Unit| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cleanup |
protected File |
newFile |
protected File |
oldFile |
protected File |
toFile |
configurable, createConfigurable, fromConfigurable| Constructor and Description |
|---|
ConfigFileTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAttributes() |
protected List<String> |
getComment() |
void |
setCleanup(boolean cleanup)
Whether to delete the patchfile after the operation
|
void |
setComment(List<String> hdr)
optional header comment for the file
|
void |
setNewFile(File file)
Location of the configuration file to be patched to; optional.
|
void |
setOldFile(File file)
Location of the configuration file to be patched from; optional.
|
void |
setToFile(File file)
Location of the resulting output file; required.
|
addEntry, execute, readConfigurable, readSourceConfigurable, setAutoNumbering, setCreate, setEmptyLines, setEncoding, setEscape, setEscapeNewLine, setHeaderComment, setOperator, setPatchPreserveEntries, setPatchPreserveValues, setPatchResolveVariables, writeConfigurableprotected File oldFile
protected File newFile
protected File toFile
protected boolean cleanup
public void setNewFile(File file)
public void setOldFile(File file)
public void setToFile(File file)
public void setCleanup(boolean cleanup)
cleanup - True, if the patchfile should be deleted after the operationprotected void checkAttributes()
throws Exception
checkAttributes in class SingleConfigurableTaskExceptionCopyright © 2001–2025. All rights reserved.