Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Using the ant task replaceregexp with JakartaOroRegexp
Using the ant task replaceregexp with JakartaOroRegexp [message #198700] Fri, 09 March 2007 07:15 Go to next message
Eclipse UserFriend
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 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
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
>
Previous Topic:New Eclipse Instance gets terminated
Next Topic:Getting Up and Running with Web data apps
Goto Forum:
  


Current Time: Thu Sep 26 16:05:18 GMT 2024

Powered by FUDForum. Page generated in 0.07446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top