I'm sure since you're using JDK 1.4 you'd like to just have that work as they state. But, a real quick way to solve this also, is just to download say Jakarta-ORO and drop it's jar into the Ant lib directory. I'm guessing you probably don't care which regex library Ant uses, as long as it works. Anyway, just an idea...
-----Original Message----- From: Drew Davidson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 6:01 AM To: Ant-User@Jakarta. Apache. Org Subject: Regexp working? I'm trying to use a regexp mapper thusly: <copy todir="${output.webapp.xml}"> <fileset refid="xml-files"/> <mapper type="regexp" from="(.*)/Foo(.*)/(.*)" to="\1/\2/\3"/> </copy> Basically I'm trying to map files that come from directories starting with Foo to remove the Foo portion (I've got directories like Reports and FooReports and I want to copy the contents from both into just Reports). The problem is that when I run this (JDK 1.4) I get: C:\Development\Java\build.xml:169: No supported regular expression matcher found The docs state that if Ant is running under JDK 1.4 it will look for the java.util.regexp matcher and use it. Am I missing something? - Drew -- Drew Davidson (520) 531-1966 (520) 531-1965 (fax) (520) 405-2967 (mobile) http://www.paintyourselfsilly.com http://www.ognl.org -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
