ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Ames <andreas.a...@tenovis.com>
Subject Issue with '=' within <regexp/>
Date Tue, 25 Mar 2003 18:43:36 GMT
Hi,

I'm sure I'm missing something obvious but I've got a problem I don't
know how to deal with.

I'm using:

ant 1.5.1 (prepackaged on Debian)
j2sdk 1.4.1
oro 2.0.6

I'm using a <replaceregexp byline="true"/> to patch a file that looks
like:

---- <test file> ----
VERSION__ = "foobar" # test

---- </test file> ----

FWIW, the second line is empty.  As nested elements I use:

<regexp pattern="^([:blank:]*)VERSION__([:blank:]*)(.*)$"/>
<substitution expression="$1 VERSION__$2-=)$3"/>

and all goes well, i.e. substitution occurs as expected.  But when I
use:

<regexp pattern="^([:blank:]*)VERSION__([:blank:]*)=(.*)$"/>
<substitution expression="$1 VERSION__$2-=)$3"/>

(only the '=' added to the pattern), no substitution occurs.  I have
no idea why, so please help me out.


TIA,

andreas

Mime
View raw message