diff -up jing-trang-20091111/build.xml~ jing-trang-20091111/build.xml
--- jing-trang-20091111/build.xml~ 2009-02-01 06:49:17.000000000 +0200
+++ jing-trang-20091111/build.xml 2010-11-30 22:04:06.391536980 +0200
@@ -145,22 +145,19 @@
<target name="javadoc" depends="init">
<mkdir dir="${build.dir}/api"/>
- <mkdir dir="${build.dir}/api/datatype"/>
<mkdir dir="${build.dir}/api/jing"/>
<mkdir dir="${build.dir}/api/regex"/>
- <javadoc sourcepath="mod/datatype/src/main" destdir="${build.dir}/api/datatype"
- doctitle="RELAX NG Datatype API" windowtitle="RELAX NG Datatype API"
- packagenames="org.relaxng.datatype,org.relaxng.datatype.helpers"/>
<javadoc sourcepath="mod/util/src/main:mod/regex/src/main" destdir="${build.dir}/api/regex"
packagenames="com.thaiopensource.datatype.xsd.regex,
com.thaiopensource.datatype.xsd.regex.java,
- com.thaiopensource.datatype.xsd.regex.xerces2"/>
+ com.thaiopensource.datatype.xsd.regex.xerces2">
+ <link href="/usr/share/javadoc/java"/>
+ </javadoc>
<javadoc sourcepathref="javadoc.sourcepath" destdir="${build.dir}/api/jing"
doctitle="Jing API" windowtitle="Jing API"
packagenames="${javadoc.packagenames}">
- <link offline="true" href="../datatype" packagelistLoc="${build.dir}/api/datatype"/>
- <link offline="true" href="http://java.sun.com/j2se/1.5.0/docs/api/"
- packagelistLoc="extapidoc/jdk/1.5"/>
+ <link href="/usr/share/javadoc/java"/>
+ <link href="/usr/share/javadoc/relaxngDatatype"/>
</javadoc>
</target>
@@ -170,7 +167,7 @@
destdir="${build.dir}/doccheck"
packagenames="${javadoc.packagenames}"
doclet="com.sun.tools.doclets.doccheck.DocCheck"
- docletpath="lib/doccheck.jar"/>
+ docletpath="${lib.dir}/doccheck.jar"/>
</target>
<target name="datatype-sample" depends="jar">
@@ -290,7 +287,7 @@
<java classname="com.thaiopensource.relaxng.translate.Driver"
fork="true"
failonerror="yes"
- classpath="${build.dir}/trang.jar">
+ classpath="${build.dir}/trang.jar:/usr/share/java/relaxngDatatype.jar">
<arg value="dtdinst/dtdinst.rnc"/>
<arg value="${build.dir}/dtdinst/dtdinst.rng"/>
</java>
@@ -360,7 +357,7 @@
depends="version,googlecode.properties"
description="Upload files to Google Code. Run dist before this.">
<taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask"
- classpath="lib/ant-googlecode.jar" name="gcupload"/>
+ classpath="${lib.dir}/ant-googlecode.jar" name="gcupload"/>
<gcupload username="${googlecode.username}"
password="${googlecode.password}"
projectname="jing-trang"
diff -up jing-trang-20091111/build.xsl~ jing-trang-20091111/build.xsl
--- jing-trang-20091111/build.xsl~ 2009-02-01 06:49:17.000000000 +0200
+++ jing-trang-20091111/build.xsl 2010-11-30 22:37:55.635536968 +0200
@@ -10,12 +10,12 @@
<project>
<xmlproperty file="version.xml"/>
<property name="build.dir" value="${{basedir}}/build"/>
- <property name="javacc.dir" value="lib"/>
+ <property name="javacc.dir" value="${{lib.dir}}"/>
<property name="ant.build.javac.source" value="1.5"/>
<property name="ant.build.javac.target" value="1.5"/>
<taskdef name="testng" classname="org.testng.TestNGAntTask">
<classpath>
- <pathelement location="lib/testng.jar"/>
+ <pathelement location="${{lib.dir}}/testng.jar"/>
</classpath>
</taskdef>
<target name="dummy"/>
@@ -111,7 +111,7 @@
<pathelement location="{$build}/mod/{@module}/classes/main"/>
</xsl:for-each>
<xsl:for-each select="depends[@lib]">
- <pathelement location="lib/{@lib}.jar"/>
+ <pathelement location="${{lib.dir}}/{@lib}.jar"/>
</xsl:for-each>
</classpath>
</javac>
@@ -151,10 +151,10 @@
<pathelement location="{$build}/mod/{@module}/classes/main"/>
</xsl:for-each>
<xsl:for-each select="depends[@lib]">
- <pathelement location="lib/{@lib}.jar"/>
+ <pathelement location="${{lib.dir}}/{@lib}.jar"/>
</xsl:for-each>
<xsl:if test="test[@type='testng']">
- <pathelement location="lib/testng.jar"/>
+ <pathelement location="${{lib.dir}}/testng.jar"/>
</xsl:if>
</classpath>
</javac>
@@ -298,13 +298,18 @@
<classpath>
<pathelement location="{$build}/{$app}.jar"/>
<xsl:if test="@lib">
- <pathelement location="lib/{@lib}.jar"/>
+ <pathelement location="${{lib.dir}}/{@lib}.jar"/>
<xsl:if test="@lib='xalan'">
- <pathelement location="lib/serializer.jar"/>
+ <pathelement location="${{lib.dir}}/xalan-j2-serializer.jar"/>
</xsl:if>
</xsl:if>
+ <!-- Upstream build assumes Class-Path in jing, trang manifests -->
<xsl:if test="$app = 'jing'">
- <pathelement location="lib/xercesImpl.jar"/>
+ <pathelement location="${{lib.dir}}/xerces-j2.jar"/>
+ <pathelement location="${{lib.dir}}/relaxngDatatype.jar"/>
+ </xsl:if>
+ <xsl:if test="$app = 'trang'">
+ <pathelement location="${{lib.dir}}/relaxngDatatype.jar"/>
</xsl:if>
</classpath>
</java>
@@ -373,7 +378,7 @@
<pathelement location="mod/{@module}/src/main"/>
</xsl:for-each>
<xsl:for-each select="../depends[@lib]">
- <pathelement location="lib/{@lib}.jar"/>
+ <pathelement location="${{lib.dir}}/{@lib}.jar"/>
</xsl:for-each>
</classpath>
</java>
@@ -402,8 +407,11 @@
<pathelement location="mod/{@module}/src/main"/>
</xsl:for-each>
<xsl:for-each select="../depends[@lib]">
- <pathelement location="lib/{@lib}.jar"/>
+ <pathelement location="${{lib.dir}}/{@lib}.jar"/>
</xsl:for-each>
+ <!-- Upstream testng.jar includes bsh and qdox -->
+ <pathelement location="${{lib.dir}}/bsh.jar"/>
+ <pathelement location="${{lib.dir}}/qdox.jar"/>
</classpath>
</testng>
</target>
diff -up jing-trang-20091111/mod/catalog/mod.xml~ jing-trang-20091111/mod/catalog/mod.xml
--- jing-trang-20091111/mod/catalog/mod.xml~ 2008-12-16 05:34:48.000000000 +0200
+++ jing-trang-20091111/mod/catalog/mod.xml 2010-11-30 22:04:06.397536844 +0200
@@ -3,5 +3,5 @@
<test name="unit" type="testng"/>
<depends module="util"/>
<depends module="resolver"/>
- <depends lib="resolver"/>
+ <depends lib="xml-commons-resolver"/>
</module>
diff -up jing-trang-20091111/mod/datatype/mod.xml~ jing-trang-20091111/mod/datatype/mod.xml
--- jing-trang-20091111/mod/datatype/mod.xml~ 2008-10-31 11:51:32.000000000 +0200
+++ jing-trang-20091111/mod/datatype/mod.xml 2010-11-30 22:04:06.398536914 +0200
@@ -1,4 +1,5 @@
<module>
<depends module="util"/>
+ <depends lib="relaxngDatatype"/>
<compile/>
</module>
diff -up jing-trang-20091111/mod/jing/mod.xml~ jing-trang-20091111/mod/jing/mod.xml
--- jing-trang-20091111/mod/jing/mod.xml~ 2009-11-11 14:24:06.000000000 +0200
+++ jing-trang-20091111/mod/jing/mod.xml 2010-11-30 22:04:06.398536914 +0200
@@ -21,8 +21,6 @@
<jar>
<manifest>
<attribute name="Main-Class" value="com/thaiopensource/relaxng/util/Driver"/>
- <attribute name="Class-Path"
- value="xercesImpl.jar xml-apis.jar saxon.jar saxon9.jar xalan.jar isorelax.jar resolver.jar"/>
</manifest>
<service type="com.thaiopensource.datatype.xsd.regex.RegexEngine"/>
<service type="org.relaxng.datatype.DatatypeLibraryFactory"/>
diff -up jing-trang-20091111/mod/pattern/mod.xml~ jing-trang-20091111/mod/pattern/mod.xml
--- jing-trang-20091111/mod/pattern/mod.xml~ 2008-12-07 05:37:23.000000000 +0200
+++ jing-trang-20091111/mod/pattern/mod.xml 2010-11-30 22:04:06.399536705 +0200
@@ -3,6 +3,7 @@
<depends module="resolver"/>
<depends module="datatype"/>
<depends module="rng-parse"/>
+ <depends lib="relaxngDatatype"/>
<compile test="yes"/>
<test name="unit" type="testng"/>
</module>
diff -up jing-trang-20091111/mod/regex/mod.xml~ jing-trang-20091111/mod/regex/mod.xml
--- jing-trang-20091111/mod/regex/mod.xml~ 2008-11-16 08:53:45.000000000 +0200
+++ jing-trang-20091111/mod/regex/mod.xml 2010-11-30 22:04:06.399536705 +0200
@@ -1,6 +1,6 @@
<module>
<depends module="util"/>
- <depends lib="xercesImpl"/>
+ <depends lib="xerces-j2"/>
<compile test="yes"/>
<test name="xerces" type="java"
class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
diff -up jing-trang-20091111/mod/rng-jaxp/mod.xml~ jing-trang-20091111/mod/rng-jaxp/mod.xml
--- jing-trang-20091111/mod/rng-jaxp/mod.xml~ 2008-12-07 05:37:23.000000000 +0200
+++ jing-trang-20091111/mod/rng-jaxp/mod.xml 2010-11-30 22:04:06.400536775 +0200
@@ -7,6 +7,7 @@
<depends module="rng-parse"/>
<depends module="pattern"/>
<depends module="jaxp"/>
+ <depends lib="relaxngDatatype"/>
<compile test="yes"/>
<test name="unit" type="testng"/>
</module>
diff -up jing-trang-20091111/mod/rng-validate/mod.xml~ jing-trang-20091111/mod/rng-validate/mod.xml
--- jing-trang-20091111/mod/rng-validate/mod.xml~ 2008-12-16 05:38:57.000000000 +0200
+++ jing-trang-20091111/mod/rng-validate/mod.xml 2010-11-30 22:04:06.401538521 +0200
@@ -7,6 +7,7 @@
<depends module="pattern"/>
<depends module="validate"/>
<depends lib="ant"/>
+ <depends lib="xml-commons-resolver"/>
<test name="spec" type="validate" schema="eg/testSuite.rng"/>
<compile/>
<version package="com/thaiopensource/relaxng/util"/>
diff -up jing-trang-20091111/mod/schematron/mod.xml~ jing-trang-20091111/mod/schematron/mod.xml
--- jing-trang-20091111/mod/schematron/mod.xml~ 2009-02-01 06:49:17.000000000 +0200
+++ jing-trang-20091111/mod/schematron/mod.xml 2010-11-30 22:04:06.407540061 +0200
@@ -3,15 +3,11 @@
<depends module="resolver"/>
<depends module="validate"/>
<depends module="rng-validate"/>
- <depends lib="xalan"/>
+ <depends lib="xalan-j2"/>
<depends lib="saxon"/>
- <depends lib="saxon9"/>
- <test name="old-saxon" in="mod/schematron/test/schematrontest.xml"
- type="validate" schema="test/schematrontest.nrl"
- lib="saxon"/>
<test name="new-saxon" in="mod/schematron/test/schematrontest.xml"
type="validate" schema="test/schematrontest.nrl"
- lib="saxon9"/>
+ lib="saxon"/>
<test name="xalan" in="mod/schematron/test/schematrontest.xml"
type="validate" schema="test/schematrontest.nrl"
lib="xalan"/>
diff -up jing-trang-20091111/mod/trang/mod.xml~ jing-trang-20091111/mod/trang/mod.xml
--- jing-trang-20091111/mod/trang/mod.xml~ 2008-12-16 11:48:23.000000000 +0200
+++ jing-trang-20091111/mod/trang/mod.xml 2010-11-30 22:04:06.408537058 +0200
@@ -13,12 +13,12 @@
<depends module="convert-to-xsd"/>
<depends module="convert-from-dtd"/>
<depends module="convert-to-dtd"/>
+ <depends lib="xml-commons-resolver"/>
<compile/>
<version package="com/thaiopensource/relaxng/translate"/>
<jar>
<manifest>
<attribute name="Main-Class" value="com/thaiopensource/relaxng/translate/Driver"/>
- <attribute name="Class-Path" value="resolver.jar"/>
</manifest>
<service type="com.thaiopensource.datatype.xsd.regex.RegexEngine">
<provider classname="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
diff -up jing-trang-20091111/mod/xerces/mod.xml~ jing-trang-20091111/mod/xerces/mod.xml
--- jing-trang-20091111/mod/xerces/mod.xml~ 2008-11-16 08:53:45.000000000 +0200
+++ jing-trang-20091111/mod/xerces/mod.xml 2010-11-30 22:04:06.414536082 +0200
@@ -1,7 +1,7 @@
<module>
<depends module="util"/>
<depends module="validate"/>
- <depends lib="xercesImpl"/>
+ <depends lib="xerces-j2"/>
<compile/>
<service type="com.thaiopensource.validate.SchemaReaderFactory">
<provider classname="com.thaiopensource.validate.xerces.XsdSchemaReaderFactory"/>
diff -up jing-trang-20091111/mod/xsd-datatype/mod.xml~ jing-trang-20091111/mod/xsd-datatype/mod.xml
--- jing-trang-20091111/mod/xsd-datatype/mod.xml~ 2008-12-11 03:34:05.000000000 +0200
+++ jing-trang-20091111/mod/xsd-datatype/mod.xml 2010-11-30 22:04:06.415537270 +0200
@@ -2,6 +2,7 @@
<depends module="util"/>
<depends module="datatype"/>
<depends module="regex"/>
+ <depends lib="relaxngDatatype"/>
<test name="xsd" type="validate" transform="xsdtest.xsl" schema="test/xsdtest.rnc"/>
<test name="unit" type="testng"/>
<compile test="yes"/>