Replaces matches of an XPath expression in a file.
Mojo Attributes:
process-resources| Name | Type | Description |
|---|---|---|
| inputFile | File |
File to make replacements to. |
| value | String |
Value to replace matches with. |
| xpath | String |
XPath expression to replace match. |
| Name | Type | Description |
|---|---|---|
| namespaceMappings | Map |
Mapping of prefixes to namespaces in the XPath expression. |
| outputDirectory | File |
Directory to place output in. Default value is ${project.build.outputDirectory}. |
File to make replacements to.
java.io.FileYes${xpathReplacement.input}java.util.MapNojava.io.FileNo${xpathReplacement.outputDirectory}${project.build.outputDirectory}java.lang.StringYes${xpathReplacement.value}java.lang.StringYes${xpathReplacement.xpath}