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 Mon, 05 Nov 2001 23:27:10 GMT
I got the same error, and fixed it by (I think) putting the RegEx
(jakarta-regexp-1.2.jar) into the ant_home\lib dir.  Probably could also put
it in the classpath.


----- Original Message -----
From: <ray_au@inovera.ca>
To: <ant-user@jakarta.apache.org>
Sent: Monday, November 05, 2001 5:38 PM
Subject: Using regexp in ant


> Hi,
>
> I've been trying to use regexp for the file mapper functionality in ant.
> I'm having problems setting up a RegexpMatcher.  Everytime I run ant, I
get
> a build failure with the following message:
>
> build.xml:23: No supported regular expression matcher found
>      at
org.apache.tools.ant.util.regexp.RegexpMatcherFactory.newRegexpMatcher(Regex
pMatcherFactory.java:94)
>      at
org.apache.tools.ant.util.RegexpPatternMapper.<init>(RegexpPatternMapper.jav
a:76)
>      at java.lang.Class.newInstance0(Native Method)
>      at java.lang.Class.newInstance(Class.java:237)
>      at
org.apache.tools.ant.types.Mapper.getImplementation(Mapper.java:209)
>      at
org.apache.tools.ant.taskdefs.ExecuteOn.checkConfiguration(ExecuteOn.java:18
3)
>      at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:175)
>      at org.apache.tools.ant.Task.perform(Task.java:217)
>      at org.apache.tools.ant.Target.execute(Target.java:184)
>      at org.apache.tools.ant.Target.performTasks(Target.java:202)
>      at org.apache.tools.ant.Project.executeTarget(Project.java:601)
>      at org.apache.tools.ant.Project.executeTargets(Project.java:560)
>      at org.apache.tools.ant.Main.runBuild(Main.java:454)
>      at org.apache.tools.ant.Main.start(Main.java:153)
>      at org.apache.tools.ant.Main.main(Main.java:176)
>
> What do I have to do get have ant find the regexp matcher?  I've already
set the ant.regexp.matcherimpl property to JakartaRegexpMatcher by using the
> following line in build.xml:
> <property name="ant.regexp.matcher" value="JakartaRegexpMatcher"/>
>
> What else do I have to do?
>
> Thanks,
> Ray
>
>
> --
> 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