slightly OT: using Localize taskdef from within Eclipse

Stefan Armbruster <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
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
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.