Blame SOURCES/jing-trang-20091111-build.patch

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