Re: slightly OT: using Localize taskdef from within Eclipse

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Stefan,

Is this the using at least 1.2.0 release (if not current CVS)?

If so, note that all endorsed packages have been removed from XMLC 
including org.w3c.dom.*, org.xml.*, and javax.xml.*.  This means these 
packages must be provided externally to XMLC.  When building under 
Ant-1.5.1+, it works because Ant comes with Xerces and the xmlParserAPIs in 
ANT_HOME/lib.  My guess is that eclipse isn't providing Xerces and the 
xmlParserAPIs to the build classpath.  You are using JDK1.3.x, right?  This 
makes sense since j2sdk1.4.x would already provide these endorsed packages.

Jake

At 07:47 PM 5/30/2003 +0200, you wrote:
>Hi,
>
>the Eclipse IDE (http://www.eclipse.org) is capable of calling targets
>in existing ant build files. When calling the Localize taskdef, I get
>this error:
>
>     [localize] ...Invoking XMLC precompiler taskdef
>      [xmlc] Invoke XMLC on
>/home/stefan/workspace/Overread/src/com/abc/overread/xmlc/template.html
>     [localize] ...Invoking Javac compiler taskdef
>     [localize] Compiling 25 source files to
>/home/stefan/workspace/Overread/build/WEB-INF/classes
>     [localize]
>/home/stefan/workspace/Overread/src_generated/src_xmlc/com/abc/overread/xmlc/templateHTML.java:106: 
>cannot access org.w3c.dom.ranges.DocumentRange
>     [localize] file org/w3c/dom/ranges/DocumentRange.class not found
>     [localize]         setDocument(fLazyDocument, "text/html",
>"ISO-8859-1");
>     [localize]         ^
>     [localize] 1 error
>     [localize] BUILD FAILED:
>file:/home/stefan/workspace/Overread/build.xml:389: Compile failed; see
>the compiler error output for details.
>Total time: 6 seconds
>
>The reason for this is IMHO the Xerces1-dependency of XMLC (the
>superclass of Localize).
>
>When calling the Localize taskdef from the same build.xml via command
>line (aka outside Eclipse) everything works fine.
>
>Any ideas?
>
>Kind regards,
>Stefan
>
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.