ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craeg K Strong <>
Subject xmlParserAPIs.jar vs xml-apis.jar
Date Mon, 27 May 2002 20:05:35 GMT

What a mess!   Who knows if those two classes are important or not...

Of course, all of the Ant tests run without them (I removed xmlParserAPIs.jar
and everything ran find on both Win32 and Linux with xml-apis.jar)

but who knows what 3rd party code would break in unexpected ways if we didn't 
include them. >:-(

Perhaps the Xalan people would give us a more up to date xml-apis.jar that
includes those two classes?  Then we could avoid bundling xmlParserAPIs.jar

Also, I like the idea of xalan.jar in lib/optional   As you say, it is not
required, but isn't that the point of the optional directory?

You include junit.jar if you want to run the tests
You include xalan.jar if you want to run the Xslt tests or use <xslt>

While it is not required, it would be a virtuous thing to do, especially since
it would be a version that is guaranteed to work with the bundled version
of xml-apis.jar    It would therefore probably prevent lots of support 
questions/emails/spurious bug reports.  Ne c'est pas?



 >> What about this as an alternative:

 >> 1) replace xmlParserAPIs.jar with xml-apis.jar in lib/
 >> 2) put xalan.jar in lib/optional
 >> 3) apply the attached patches to bootstrap.bat,,
 >>, build.bat, and build.xml

 >> xml-apis.jar seems to be a strict superset of xmlParserAPIs.jar
 >> That is, it is the same except that it includes the entire JAXP
 >> rather than xerces' chopped down version.

 > I agree that (1) would be the simplest fix but I did a quick check with the >
 > latest xalan xml-apis.jar and the xerces xmlParserAPIs.jar in Ant's CVS and  \
 > found two classes which are not in xml-apis.jar

 > Only in temp2/org/xml/sax/helpers: NewInstance.class
 > Only in temp2/org/w3c/dom/html: HTMLDOMImplementation.class

 > So, it is not a strict superset.

 > Not sure that (2) is required

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message