ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis GALIEGUE <...@one2team.com>
Subject Re: regexp-type <mapper> doesn't work as expected/(advertised?)
Date Mon, 12 Oct 2009 08:21:33 GMT
On Mon, Oct 12, 2009 at 08:40, Francis GALIEGUE <fge@one2team.com> wrote:
[...]
>
> Let me be more precise about that.
>
> If I:
>
> echo t.xml | sed 's,xml$,txt'
>
> I get t.txt as an output. As expected.
>
> I know that Java's .matches() method on a String is a misnomer (it
> tries and matches the whole input, unlike what its name says, because
> /xml$/ DOES match t.xml), but I though that ant wouldn't make this
> error...
>

[that should have been 's,xml$,txt,', with an ending comma, but the
argument still stands]

I should add that ant-contrib's <propertyregex> does not suffer from
this problem. I know this since in another build system of mine, I
don't use the regex mapper as I didn't know about it at the time, and
it seems that I'll stick with it...


-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message