public class SingleXmlFileMergeTask extends Object implements ConfigurableTask
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cleanup |
protected File |
conffile |
protected Properties |
confProps |
protected File |
origfile |
protected File |
patchfile |
protected File |
tofile |
| Constructor and Description |
|---|
SingleXmlFileMergeTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileSet(FileSet fileset)
Adds a file set.
|
void |
addProperty(String key,
String value)
Adds a XML merge configuration property (XPath)
|
void |
execute() |
void |
setCleanup(boolean cleanup)
Whether to delete the patchfiles after the operation
|
void |
setConfigFile(File confFile) |
void |
setOriginalFile(File origfile) |
void |
setPatchFile(File patchfile) |
void |
setToFile(File tofile) |
void |
validate()
Validates the configuration and destination files and the file sets.
|
protected File origfile
protected File patchfile
protected File tofile
protected File conffile
protected boolean cleanup
protected Properties confProps
public void setOriginalFile(File origfile)
public void setPatchFile(File patchfile)
public void setToFile(File tofile)
public void setConfigFile(File confFile)
public void setCleanup(boolean cleanup)
cleanup - True, if the patchfiles should be deleted after the operationpublic void addFileSet(FileSet fileset)
fileset - The file set to addpublic void addProperty(String key, String value)
key - The property keyvalue - The property valuepublic void validate()
throws Exception
Exceptionpublic void execute()
throws Exception
execute in interface ConfigurableTaskExceptionCopyright © 2001–2025. All rights reserved.