Using the ant task replaceregexp with JakartaOroRegexp [message #198700] |
Fri, 09 March 2007 07:15 |
Eclipse User |
|
|
|
Originally posted by: eclipse.dominique.euro.tm
Hello,
I want to use the ant task replaceregexp with JakartaOroRegexp.
So I have in my build.xml file :
<property name="ant.regexp.regexpimpl"
value="org.apache.tools.ant.util.regexp.JakartaOroRegexp"/ >
<target name="sql2csv"
description="Convertit les fichiers sql en cvs" >
<!-- page.sql page.csv -->
<replaceregexp file="ptwiki/ptwiki-20070303-page.sql"
match=" \(([0-9]*,[0-9]*,'([^\\]*?\\['])*?[^']*?'),'[^']*?',[0-9]+(, [0-9]+),[0-9]*,[0-9.]*,'[^']*?',[0-9]*,[0-9]*,[0-9]*\), "
replace="\1\3\\\\n"
flags="g"
byline="true"/>
</target>
I have the error :
BUILD FAILED
G:\EclipseWorkspace\dicos\baseWiki\build.xml:25:
java.lang.NoClassDefFoundError: org/apache/oro/text/regex/PatternMatcher
I have copyed the jakarta-oro-2.0.8.jar in the
plugins\org.apache.ant_1.6.5\lib folder, do I have to make some more
configuration ?
Dominique
|
|
|
Re: Using the ant task replaceregexp with JakartaOroRegexp [message #198797 is a reply to message #198700] |
Sat, 10 March 2007 17:09 |
Darin Swanson Messages: 2386 Registered: July 2009 |
Senior Member |
|
|
Copying the library into the lib directory is NOT going to get the library
picked up for the Ant runtime classpath.
Window>Preferences>Ant>Runtime>Classpath
Select Global Entries
Add External JARs...
Add the jakarta-oro-2.0.8.jar
HTH
Darins
"Dominique Dormet" <eclipse@dominique.euro.tm> wrote in message
news:b85e143305f83d11f0b4789081b39e36$1@www.eclipse.org...
> Hello,
>
> I want to use the ant task replaceregexp with JakartaOroRegexp.
>
> So I have in my build.xml file :
> <property name="ant.regexp.regexpimpl"
> value="org.apache.tools.ant.util.regexp.JakartaOroRegexp"/ >
>
> <target name="sql2csv" description="Convertit les fichiers sql en cvs" >
> <!-- page.sql page.csv -->
> <replaceregexp file="ptwiki/ptwiki-20070303-page.sql"
>
> match=" \(([0-9]*,[0-9]*,'([^\\]*?\\['])*?[^']*?'),'[^']*?',[0-9]+(, [0-9]+),[0-9]*,[0-9.]*,'[^']*?',[0-9]*,[0-9]*,[0-9]*\), "
> replace="\1\3\\\\n"
> flags="g"
> byline="true"/>
> </target>
>
> I have the error :
> BUILD FAILED
> G:\EclipseWorkspace\dicos\baseWiki\build.xml:25:
> java.lang.NoClassDefFoundError: org/apache/oro/text/regex/PatternMatcher
>
> I have copyed the jakarta-oro-2.0.8.jar in the
> plugins\org.apache.ant_1.6.5\lib folder, do I have to make some more
> configuration ?
>
> Dominique
>
|
|
|
Powered by
FUDForum. Page generated in 0.07446 seconds