You need a regexp utility. Since JDK 1.4 there is a built in (I think), or you have to use an external, e.g. ORO, RegExp... See Ant´s manual "installation | lib dependencies"
Jan > -----Ursprüngliche Nachricht----- > Von: Yves Leung-Tack [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 6. Januar 2005 15:22 > An: Ant Users List > Betreff: help with propertyregexp of antcontrib > > Hi, > > > I try to use the propertyregexp of ant-contrib > But when I run the following simple example from their > documentation, I got the error : > > D:\Work\Dev\testbuild.xml:16: No supported regular expression > matcher found > > > The example is : to run on your machine just change > antcontrib property > value to the > directory where you store the antcontrib jar file > > > <project default="build" name="test"> > <!-- Include this ant-contrib package --> > <property name="antcontrib" > value="D:\Work\Tools\ant-contrib1.0b1\lib\ant-contrib-1.0b1.jar" /> > <taskdef resource="net/sf/antcontrib/antcontrib.properties"> > <classpath> > <pathelement location="${antcontrib}" /> > </classpath> > </taskdef> > > <target name="build"> > <propertyregex property="pack.name" > input="package.ABC.name" > regexp="package\.([^\.]*)\.name" > select="\1" /> > > <echo message="${pack.name}">@@</echo> > </target> > </project> > > > > Thanks a lot for help > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >