ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Leung-Tack <yves.leungt...@laposte.net>
Subject Re: AW: help with propertyregexp of antcontrib
Date Thu, 06 Jan 2005 15:37:25 GMT
Hi,

  Thanks I can make it work when I copy the regexp package into the abt 
lib directory.
I tried to put it in a separate directory. For that I have to specified 
it my build.xml
in the following way but I need a .properties file!
Where can I get it or Is there another way to specify that package in 
the build file ?


    <property name="regexpjar" 
value="D:\Work\Tools\jakarta-regexp-1.3\jakarta-regexp-1.3.jar"/>
    <taskdef resource="?????????.properties">
        <classpath>
            <pathelement location="${regexpjar}" />
        </classpath>
    </taskdef>


Jan.Materne@rzf.fin-nrw.de wrote:

>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:yves.leungtack@laposte.net]
>>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: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>    
>>
>
>  
>

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


Mime
View raw message