mrglavas 2005/06/14 10:34:56
Modified: java build.xml
Log:
Remove META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration
from xercesImpl.jar.
xercesImpl.jar should not contain a META-INF/services entry indicating which
configuration the parser
should use. It prevents applications further down the classpath from
overriding the parser's default
and may also cause an incompatible mix of classes to be loaded leading to a
failure such
as a NoSuchMethodError.
Revision Changes Path
1.189 +7 -3 xml-xerces/java/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-xerces/java/build.xml,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -r1.188 -r1.189
--- build.xml 13 Jun 2005 04:58:49 -0000 1.188
+++ build.xml 14 Jun 2005 17:34:56 -0000 1.189
@@ -181,8 +181,12 @@
<!-- Prepares the source code
-->
<!-- ===================================================================
-->
<target name="prepare-src" depends="prepare-common">
- <copy
file="${src.dir}/org/apache/xerces/parsers/org.apache.xerces.xni.parser.XMLParserConfiguration"
-
tofile="${build.dest}/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration"/>
+
+ <!-- Do not include this file in xercesImpl.jar. It prevents
applications further down the
+ classpath from overriding the parser's default and may also cause
an incompatible mix
+ of classes to be loaded leading to a failure such as a
NoSuchMethodError. -->
+ <!-- <copy
file="${src.dir}/org/apache/xerces/parsers/org.apache.xerces.xni.parser.XMLParserConfiguration"
+
tofile="${build.dest}/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration"/>
-->
<copy
file="${src.dir}/org/apache/xerces/dom/org.w3c.dom.DOMImplementationSourceList"
tofile="${build.dest}/META-INF/services/org.w3c.dom.DOMImplementationSourceList"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]