You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Khehra, Sukh" <Su...@wsj.com> on 2004/08/04 18:46:08 UTC

RE: No supported regular expression matcher found

help please. i need to use the ReplaceRegExp task without having to use JDK 1.4. any ideas how i can do this?

thanks,
sukh

-----Original Message-----
From: Khehra, Sukh 
Sent: Monday, July 26, 2004 3:00 PM
To: 'Ant Users List'
Subject: No supported regular expression matcher found


Why do i keep getting this error?

<path>/build.xml:14: Following error occured while executing this line
<path>/build.xml:19: Following error occured while executing this line
<path>/build.xml:47: Following error occured while executing this line
<path>/build.xml:55: Following error occured while executing this line
<path>/build.xml:209: Following error occured while executing this line
<path>/build.xml:269: No supported regular expression matcher found


i have my ANT_HOME var set up correctly and i even tried setting up the following property in my build.xml.

<property name="ant.regexp.regexpimpl" value="org.apache.tools.ant.util.regexp.JakartaOroRegexp"/>


the offending code in build.xml, it seems, is


<filterchain>
   <tokenfilter>
         <filetokenizer/>
         <replaceregex pattern="@PROD@" flags="s" replace=""/>
         <replaceregex pattern="([\n\r])\s*@QA@[^\n\r]*[\n\r]" flags="s" replace="\1"/>                        
         <replaceregex pattern="([\n\r])\s*@DEV@[^\n\r]*[\n\r]" flags="s" replace="\1"/>
         <replaceregex pattern="([\n\r])\s*@TEST@[^\n\r]*[\n\r]" flags="s" replace="\1"/>                        
   </tokenfilter>
</filterchain>


i'd appreciate the help.

-sukh

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


Re: No supported regular expression matcher found

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
Did you read http://ant.apache.org/manual/install.html#librarydependencies ?

- Alexey.

Khehra, Sukh wrote:

>help please. i need to use the ReplaceRegExp task without having to use JDK 1.4. any ideas how i can do this?
>
>thanks,
>sukh
>
>  
>

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