ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Chambery" <tchamb...@hotmail.com>
Subject Re: Using regexp in ant
Date Wed, 07 Nov 2001 15:07:18 GMT
I think it might be worthwhile to stick a line in there saying something to
the effect of "copy a X-regEx.jar impl into your ant lib dir.

On a related note, I wonder if it wouldn't be worthwhile to compile an
"error library".  Basically just a hash of common errors to their possible
solutions (given that any one error message might have a number root
causes).

Todd


----- Original Message -----
From: "Stefan Bodewig" <bodewig@apache.org>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, November 06, 2001 4:01 AM
Subject: Re: Using regexp in ant


> On Mon, 5 Nov 2001, ray au <ray_au@inovera.ca> wrote:
>
> > Thanks Todd!  This has worked for me as well.  However, this brings
> > to mind a question as to why did the JakartaRegexpMatcher in ant.jar
> > not work?
>
> Because it depends upon jakarta-regexp and that one hasn't been on
> your CLASSPATH.
>
> From the docs for the regexp mapper:
>
> >> The regexp mapper needs a supporting library and an implementation
> >> of org.apache.tools.ant.util.regexp.RegexpMatcher that hides the
> >> specifics of the library. Ant comes with implementations for the
> >> java.util.regex package of JDK 1.4, jakarta-regexp and jakarta-ORO.
>
> So it needs an implemenation (you've named it) *and* a library, which
> hasn't been present in your case.  If this paragraph hasn't been clear
> enough (very well possible), please submit a better version of it -
> all documentation patches will be greatly appreciated.
>
> Thanks
>
>         Stefan
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>

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


Mime
View raw message