use of org.apache.tools.ant.types.RegularExpression in project ant by apache.
the class ReplaceRegExp method setMatch.
/**
* the regular expression pattern to match in the file(s);
* required if no nested <regexp> is used
*
* @param match the match attribute.
*/
public void setMatch(String match) {
if (regex != null) {
throw new BuildException("Only one regular expression is allowed");
}
regex = new RegularExpression();
regex.setPattern(match);
}
Aggregations