ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: REGEXP mapper Help needed
Date Mon, 06 Oct 2003 15:49:01 GMT
On Mon, 6 Oct 2003, Doug Lochart <dlochart@capecomputing.com> wrote:

> This works fine in copying over the .ccp files to .cl2 but there is
> one other requirement, and that is that the \1 match needs to be
> uppercased.

I'm afraid that this can't be done with a regular expression (at least
not the kind that is supported by Ant).

You could write your own mapper implementation, it shouldn't be too
hard to do.  Make it extend RegexpPatternMapper (only if you really
need regular expression support) and override mapFileName to use the
result of your super class and uppercase the filename part of it.

Stefan

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


Mime
View raw message