You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Vivek Pandey <vi...@sun.com> on 2002/04/05 02:55:45 UTC
Building xercesImpl.jar from xml-common
xerces has xml-api (javax) sources and compiles them and references them
in the build.
I am trying to compile xerces with xml-commons jars. The only way i am
able to do is by changing xml-xerces/java/build.xml (to compile only for
target 'org' excluding 'javax') file.
Below is the diff of xml-xerces/java/build.xml, introduced new target
compile.xerces, which compiles src/org. This means i can set a classpath
pointing to xml-common jars so that it resolves xmlapi related
references from it. Everything looks fine with this change.
There can be better way of doing it:
-include xml-api.jar file in xml-xerces/tools.
-Remove javax sources or do not compile them.
-add a path id or property to refer to xmlapi.jar file. This
path id can be overridden from the other build file which invokes this
build.
I think xerces/java/build.xml should be modified to take xml-api.jar
from xml-commons instead of from native source. Because xerces native
javax package can be out of sync with xml-commons javax package.
Does anyone know can help how to fix this.
thanks,
-vivek.
--------------------
Index: build.xml
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/build.xml,v
retrieving revision 1.74
diff -c -w -r1.74 build.xml
*** build.xml 4 Mar 2002 12:35:42 -0000 1.74
--- build.xml 5 Apr 2002 00:04:49 -0000
***************
*** 182,187 ****
--- 182,207 ----
</target>
<!--
=================================================================== -->
+ <!-- Compile xerces source and use external
jaxp-api -->
+ <!--
=================================================================== -->
+ <target name="compile.xerces" depends="prepare-src">
+ <copy todir="${build.dest}">
+ <fileset dir="${build.src}"
+ includes="**/*.res, **/*.properties">
+ </fileset>
+ </copy>
+
+ <javac srcdir="${build.src}/org"
+ excludes="**/RevalidatingDOMParser.java"
+ destdir="${build.dest}"
+ debug="${debug}"
+ deprecation="${deprecation}"
+ optimize="${optimize}"
+ includeAntRuntime="true"
+ includeJavaRuntime="true"/>
+ </target>
+
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org