You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by nd...@apache.org on 2002/11/13 21:59:56 UTC
cvs commit: xml-commons/java resolver.xml
ndw 2002/11/13 12:59:55
Modified: java resolver.xml
Log:
Updated targets
Revision Changes Path
1.3 +58 -6 xml-commons/java/resolver.xml
Index: resolver.xml
===================================================================
RCS file: /home/cvs/xml-commons/java/resolver.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- resolver.xml 7 Nov 2002 15:06:30 -0000 1.2
+++ resolver.xml 13 Nov 2002 20:59:54 -0000 1.3
@@ -27,7 +27,6 @@
<property name="docs.dir" value="${build.dir}"/>
<property name="docs.user.dir" value="${docs.dir}/docs"/>
<property name="docs.java.dir" value="${docs.user.dir}/javadocs"/>
- <property name="docs.printer.dir" value="${docs.user.dir}/printer"/>
<property name="dist.basename" value="${name.resolver}-${impl.version}"/>
<!-- Source constants and directories -->
@@ -37,6 +36,10 @@
<property name="resolver.jar.name" value="resolver.jar" />
<property name="resolver.jar" value="${resolver.jar.location}/${resolver.jar.name}" />
+ <property name="jaxp.jar" value="/usr/local/jaxp-1.1/jaxp.jar"/>
+ <property name="xmlParserAPIs.jar" value="/projects/apache/xml-xerces/java/build/xmlParserAPIs.jar"/>
+ <property name="xerces2.jar" value="/projects/apache/xml-xerces/java/build/xercesImpl.jar"/>
+
<!-- Test results directory -->
<property name="check.dir" value="${tmp.dir}/${project.name}/check"/>
@@ -64,7 +67,18 @@
<target name="compile" depends="init"
description="Compile all classes">
+
+ <echo message="Compiling..." />
+
<javac srcdir="${src.dir}" destdir="${build.classes.dir}">
+ <classpath>
+ <pathelement location="${jaxp.jar}"/>
+ <pathelement location="${xmlParserAPIs.jar}"/>
+ <pathelement location="${xerces2.jar}"/>
+ <pathelement location="${resolver.jar}"/>
+ <pathelement path="${java.class.path}"/>
+ </classpath>
+
<include name="${resolver.subdir}/*.java"/>
<include name="${resolver.subdir}/helpers/*.java"/>
<include name="${resolver.subdir}/readers/*.java"/>
@@ -103,7 +117,7 @@
</target>
<target name="docs"
- depends="javadocs"
+ depends="javadocs,htmldocs"
description="Generates all documentation for a project.">
</target>
@@ -129,6 +143,46 @@
</javadoc>
</target>
+ <target name="htmldocs" depends="jar">
+ <echo message="Building docs for ${name.resolver} ..." />
+ <java fork="true" classname="org.apache.xalan.xslt.Process">
+ <classpath>
+ <pathelement location="/usr/local/java/jakarta-ant-1.5.1/lib/xml-apis.jar"/>
+ <pathelement location="/usr/local/java/jakarta-ant-1.5.1/lib/xercesImpl.jar"/>
+ <pathelement location="../../xml-xalan/java/build/classes"/>
+ <pathelement location="${build.dir}/resolver.jar"/>
+ </classpath>
+ <arg value="-URIRESOLVER"/>
+ <arg value="org.apache.xml.resolver.tools.CatalogResolver"/>
+ <arg value="-ENTITYRESOLVER"/>
+ <arg value="org.apache.xml.resolver.tools.CatalogResolver"/>
+ <arg value="-IN"/>
+ <arg value="docs/resolver.xml"/>
+ <arg value="-OUT"/>
+ <arg value="${build.dir}/docs/resolver.html"/>
+ <arg value="-XSL"/>
+ <arg value="/sourceforge/docbook/xsl/html/docbook.xsl"/>
+ </java>
+ <java fork="true" classname="org.apache.xalan.xslt.Process">
+ <classpath>
+ <pathelement location="/usr/local/java/jakarta-ant-1.5.1/lib/xml-apis.jar"/>
+ <pathelement location="/usr/local/java/jakarta-ant-1.5.1/lib/xercesImpl.jar"/>
+ <pathelement location="../../xml-xalan/java/build/classes"/>
+ <pathelement location="${build.dir}/resolver.jar"/>
+ </classpath>
+ <arg value="-URIRESOLVER"/>
+ <arg value="org.apache.xml.resolver.tools.CatalogResolver"/>
+ <arg value="-ENTITYRESOLVER"/>
+ <arg value="org.apache.xml.resolver.tools.CatalogResolver"/>
+ <arg value="-IN"/>
+ <arg value="docs/release-notes.xml"/>
+ <arg value="-OUT"/>
+ <arg value="${build.dir}/docs/release-notes.html"/>
+ <arg value="-XSL"/>
+ <arg value="/sourceforge/docbook/xsl/html/docbook.xsl"/>
+ </java>
+ </target>
+
<target name="dist"
depends="all, docs"
description="Generates all the artifacts used for a distribution.">
@@ -179,6 +233,7 @@
<echo message="BEGIN Simple test: just call Resolver (manual verification required)."/>
<java classname="org.apache.xml.resolver.Catalog">
<classpath>
+ <pathelement location="/share/projects/apache/xml-xerces/java/build/xercesImpl.jar"/>
<pathelement location="${resolver.jar}"/>
<pathelement path="${java.class.path}"/>
</classpath>
@@ -197,7 +252,4 @@
<copy todir="${build.dir}" file="${src.dir}/manifest.resolver" filtering="true"/>
<copy tofile="${src.dir}/${resolver.subdir}/Version.java" file="${src.dir}/${resolver.subdir}/Version.src" filtering="true"/>
</target>
-
- <!-- Project specific Targets -->
-
</project>