lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Rowe <>
Subject Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
Date Thu, 03 Jan 2013 00:39:05 GMT
On Jan 2, 2013, at 5:18 PM, "Uwe Schindler" <> wrote:
> Unfortunately there is no way to apply a regex to a property value and assign it to a
new one (see e.g.,

I disagree.

The "get-svn-info" macro in lucene/common-build.xml converts a multi-line property value into
a set of two other properties, by building "key=value" lines and interpreting them as properties
file lines:

  <propertyresource name=""/>
      <regexp pattern="(URL|Revision):"/>
    <replacestring from=": " to="="/>
    <prefixlines prefix="svn."/>

Similarly, to do regex replacement on a property value and assign the result to another property

  <propertyresource name="version"/>
      <replaceregex pattern="-SNAPSHOT" replace="-*"/>
    <prefixlines prefix="maven-version-glob="/>

Kinda verbose, but should do the trick.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message