You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2002/04/03 16:58:28 UTC
cvs commit: xml-xerces/java build.xml
neilg 02/04/03 06:58:28
Modified: java build.xml
Log:
add a new build target, dtdjar, for constructing a DTD-only xercesImpl. Also added dtdjars to build the full set of jars with this one included.
Revision Changes Path
1.76 +100 -1 xml-xerces/java/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-xerces/java/build.xml,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -r1.75 -r1.76
--- build.xml 27 Mar 2002 22:10:08 -0000 1.75
+++ build.xml 3 Apr 2002 14:58:28 -0000 1.76
@@ -12,7 +12,7 @@
Copyright:
Copyright (c) 2000-2002 The Apache Software Foundation.
- $Id: build.xml,v 1.75 2002/03/27 22:10:08 neilg Exp $
+ $Id: build.xml,v 1.76 2002/04/03 14:58:28 neilg Exp $
==================================================================== -->
@@ -650,5 +650,104 @@
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
</target>
+
+ <!-- =================================================================== -->
+ <!-- Creates the DTD-only implementation class package -->
+ <!-- =================================================================== -->
+ <target name="dtdjar" depends="dtdcompile">
+ <jar jarfile="${build.dir}/${jar.parser}"
+ basedir="${build.dest}"
+ compress="true"
+ includes="org/apache/**, META-INF/**"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Compiles the DTD-only source directory -->
+ <!-- =================================================================== -->
+ <target name="dtdcompile" depends="dtdprepare-src">
+ <copy todir="${build.dest}">
+ <fileset dir="${build.src}"
+ includes="**/*.res, **/*.properties">
+ </fileset>
+ </copy>
+
+ <javac srcdir="${build.src}"
+ destdir="${build.dest}"
+ debug="${debug}"
+ deprecation="${deprecation}"
+ optimize="${optimize}"
+ includeAntRuntime="false"
+ includeJavaRuntime="true"/>
+ </target>
+
+
+ <!-- =================================================================== -->
+ <!-- Compiles the DTD-only source code -->
+ <!-- =================================================================== -->
+ <target name="dtdprepare-src" depends="prepare">
+ <!-- create directories -->
+ <mkdir dir="${build.src}"/>
+ <mkdir dir="${build.dest}"/>
+ <mkdir dir="${build.dest}/META-INF"/>
+ <mkdir dir="${build.dest}/META-INF/services"/>
+
+ <copy file="${src.dir}/org/apache/xerces/jaxp/javax.xml.parsers.DocumentBuilderFactory"
+ tofile="${build.dest}/META-INF/services/javax.xml.parsers.DocumentBuilderFactory"/>
+
+ <copy file="${src.dir}/org/apache/xerces/jaxp/javax.xml.parsers.SAXParserFactory"
+ tofile="${build.dest}/META-INF/services/javax.xml.parsers.SAXParserFactory"/>
+
+ <copy file="${src.dir}/org/apache/xerces/parsers/org.xml.sax.driver"
+ tofile="${build.dest}/META-INF/services/org.xml.sax.driver"/>
+
+ <copy file="${src.dir}/org/apache/xerces/parsers/org.apache.xerces.xni.parser.DTDConfiguration"
+ tofile="${build.dest}/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration"/>
+
+ <!-- copy src files -->
+ <copy todir="${build.src}">
+ <fileset
+ dir="${src.dir}"
+ includes="**/Makefile, **/Makefile.incl, javax/**, org/**"
+ excludes="**/classfiles_updated **/CVS* **/.#* **/XMLMessages.java
+ **/SchemaImporter.java **/RevalidatingDOMParser.java
+ **/DatatypeContentModel.java **/ComplexTypeInfo.java
+ **/DTDImporter.java
+ **/v1/** **/v2/**
+ **/RevalidatingDOMParser.java
+ org/apache/xerces/impl/xs/**
+ org/apache/xerces/impl/dv/xs/**
+ org/apache/xerces/impl/xs/identity/**
+ org/apache/xerces/impl/xs/traversers/**
+ org/apache/xerces/impl/xs/models/**
+ org/apache/xerces/impl/xs/util/**
+ org/apache/xerces/impl/xs/dom/**
+ org/apache/xerces/impl/xpath/**
+ org/apache/xerces/impl/xpath/regex/**
+ org/apache/xerces/impl/dv/XS*.java
+ org/apache/xerces/impl/dv/Schema*.java
+ org/apache/xerces/impl/dv/ValidatedInfo.java
+ org/apache/xerces/impl/msg/XMLSchema**
+ org/apache/xerces/impl/validation/XMLGrammarPoolImpl.java
+ org/apache/xerces/parsers/DOMASBuilderImpl.java
+ org/apache/xerces/parsers/StandardParserConfiguration.java
+ org/apache/xerces/parsers/XMLGrammarCachingConfiguration.java
+ org/apache/xerces/parsers/CachingParserPool.java
+ org/apache/xerces/dom/ASModelImpl.java
+ org/apache/xerces/dom/ASDOMImplementationImpl.java
+ ">
+ </fileset>
+ </copy>
+
+ <!-- substitute tokens as needed -->
+ <replace file="${build.dir}/src/org/apache/xerces/impl/Version.java"
+ token="@@VERSION@@" value="${parser.Name} ${parser.Version}"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Builds xercesImpl (DTD-only), xmlParserAPIs and sample jar files -->
+ <!-- =================================================================== -->
+ <target name="dtdjars" depends="dtdjar, sampjar, apijar">
+ </target>
+
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org