资 源 简 介
About
This program performs a regular expression search on text input and replaces any match with text taken from an XML file by a XPath expression. The normal usage is:
xmuta < input-template > output-file xml-file regular-expression xpath-expression
The program is written in Java and has up to a recent Java version no dependencies. In order to build the program you need either GNU Make or Apache Ant.
Example
The following example shows how to build a Java Manifest file by extracting the manifest data from a Maven Pom file, in which the data has been embedded.
Embedding data in a Maven Pom file
It is possible to embed anything in a Maven Pom file, because the Maven schema definition contains several nodes, which may contain any data. The most suited candidate is the node /project/properties. It is useful to give the embedded data a own name space, to distinguish it from the rest of t