]> granicus.if.org Git - docbook-dsssl/commitdiff
Extensions and other builds ported to Ant
authorJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 17:21:18 +0000 (17:21 +0000)
committerJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 17:21:18 +0000 (17:21 +0000)
xsl/build.xml
xsl/eclipse/build.xml [new file with mode: 0644]
xsl/extensions/build.xml [new file with mode: 0644]
xsl/htmlhelp/build.xml [new file with mode: 0644]
xsl/javahelp/build.xml [new file with mode: 0644]
xsl/tools/build-shared.xml
xsl/tools/lib/xalan.jar [new file with mode: 0644]
xsl/tools/lib/xercesImpl.jar
xsl/tools/lib/xml-apis.jar
xsl/website/build.xml [new file with mode: 0644]

index ed60799108d69fedcdf3153984fb7b55daa5209f..6474cc5627a32ecb6d5b29e01872f4f008314105 100644 (file)
@@ -1,6 +1,16 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <project name="DocBook XSLT 1.0 stylesheets" default="all">\r
 \r
+  <!-- \r
+       This is an attempt to rewrite build process in Ant.\r
+       This is still work in progress.\r
+\r
+       If you want to build extensions, you must start Ant with property specifying path to your JDK, for example:\r
+\r
+           ant -Dplatform.home=c:\jdk1.6\r
+\r
+  -->\r
+\r
   <property name="dbroot.dir" value="${ant.file}/.."/>\r
   <import file="tools/build-shared.xml"/>\r
 \r
 \r
   <target name="build">\r
     <ant dir="common"/>\r
-    <ant dir="lib"/>\r
     <ant dir="html"/>\r
     <ant dir="fo"/>\r
     <ant dir="manpages"/>\r
     <ant dir="htmlhelp"/>\r
     <ant dir="javahelp"/>\r
     <ant dir="eclipse"/>\r
-    <ant dir="roundtrip"/>\r
-    <ant dir="slides"/>\r
+    <!-- FIXME: <ant dir="roundtrip"/> -->\r
+    <!-- FIXME: <ant dir="slides"/> -->\r
     <ant dir="website"/>\r
     <ant dir="extensions"/>\r
     <ant dir="xhtml"/>\r
@@ -28,7 +37,6 @@
 \r
   <target name="clean">\r
     <ant dir="common" target="clean"/>\r
-    <ant dir="lib" target="clean"/>\r
     <ant dir="html" target="clean"/>\r
     <ant dir="fo" target="clean"/>\r
     <ant dir="manpages" target="clean"/>\r
diff --git a/xsl/eclipse/build.xml b/xsl/eclipse/build.xml
new file mode 100644 (file)
index 0000000..c5111b5
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - Eclipse" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="profile">\r
+  </target>\r
+\r
+  <target name="profile">\r
+    <echo>Building profiling version of Eclipse stylesheet...</echo>\r
+    <xslt in="eclipse.xsl" out="profile-eclipse.xsl" style="../profiling/xsl2profile.xsl">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+    </xslt>\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <!-- FIXME -->\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r
diff --git a/xsl/extensions/build.xml b/xsl/extensions/build.xml
new file mode 100644 (file)
index 0000000..0940489
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - Extensions" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="copy">\r
+  </target>\r
+\r
+  <target name="copy" depends="build">\r
+    <echo>Copying extensions...</echo>\r
+    <copy todir="." flatten="true">\r
+      <fileset dir="../..">\r
+       <include name="xsl-saxon/saxon65.jar"/>\r
+       <include name="xsl-xalan/xalan27.jar"/>\r
+       <include name="xsl-webhelpindexer/webhelpindexer.jar"/>\r
+       <include name="xsl-webhelpindexer/lib/*.jar"/>\r
+       <include name="xsl-libxslt/python/xslt.py"/>\r
+       <include name="xsl-libxslt/python/python.py"/>\r
+       <include name="xsl-libxslt/python/README.LIBXSLT"/>\r
+      </fileset>\r
+    </copy>\r
+  </target>\r
+\r
+  <target name="build">\r
+    <ant dir="../../xsl-saxon">\r
+      <property name="file.reference.saxon.jar" value="${saxon.jar}"/>\r
+    </ant>\r
+    <ant dir="../../xsl-xalan">\r
+      <property name="file.reference.xalan.jar" value="${xalan.jar}"/>\r
+    </ant>\r
+    <ant dir="../../xsl-webhelpindexer"/>\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <!-- FIXME -->\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r
diff --git a/xsl/htmlhelp/build.xml b/xsl/htmlhelp/build.xml
new file mode 100644 (file)
index 0000000..4a078d4
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - HTML Help" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="profile">\r
+  </target>\r
+\r
+  <target name="profile">\r
+    <echo>Building profiling version of HTML Help stylesheet...</echo>\r
+    <xslt in="htmlhelp-common.xsl" out="profile-htmlhelp-common.xsl" style="../profiling/xsl2profile.xsl">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+    </xslt>\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <!-- FIXME -->\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r
diff --git a/xsl/javahelp/build.xml b/xsl/javahelp/build.xml
new file mode 100644 (file)
index 0000000..a64e9e0
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - JavaHelp" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="profile">\r
+  </target>\r
+\r
+  <target name="profile">\r
+    <echo>Building profiling version of JavaHelp stylesheet...</echo>\r
+    <xslt in="javahelp.xsl" out="profile-javahelp.xsl" style="../profiling/xsl2profile.xsl">\r
+      <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
+      <classpath refid="saxon.classpath"/>\r
+    </xslt>\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <!-- FIXME -->\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r
index d302b599c51da425fa2876622aee7d1555d9f003..98785abdd944a0706c0405fb169b8012c1c8ce92 100644 (file)
@@ -5,6 +5,7 @@
   <property name="libs" value="${dbroot.dir}/tools/lib"/>\r
   <property name="saxon9.jar" value="${libs}/saxon9he.jar"/>\r
   <property name="saxon.jar" value="${libs}/saxon.jar"/>\r
+  <property name="xalan.jar" value="${libs}/xalan.jar"/>\r
   <property name="xerces.jar" value="${libs}/xercesImpl.jar"/>\r
   <property name="saxon-ant.jar" value="${libs}/saxon9-ant.jar"/>\r
   <property name="jing.jar" value="${libs}/jing.jar"/>\r
diff --git a/xsl/tools/lib/xalan.jar b/xsl/tools/lib/xalan.jar
new file mode 100644 (file)
index 0000000..abdabe3
Binary files /dev/null and b/xsl/tools/lib/xalan.jar differ
index 547f56300d93fe36587910739e095f03e287d47e..0aaa990f3ecadf60d28b5395dc87bbe49da0cdd7 100644 (file)
Binary files a/xsl/tools/lib/xercesImpl.jar and b/xsl/tools/lib/xercesImpl.jar differ
index d42c0ea6cfd17ed6b444b8337febbc0bdb55ed83..46733464fc746776c331ecc51061f3a05e662fd1 100644 (file)
Binary files a/xsl/tools/lib/xml-apis.jar and b/xsl/tools/lib/xml-apis.jar differ
diff --git a/xsl/website/build.xml b/xsl/website/build.xml
new file mode 100644 (file)
index 0000000..b20d14c
--- /dev/null
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - Website" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="param">\r
+  </target>\r
+\r
+  <target name="param">\r
+    <echo>Building Website parameters...</echo>\r
+    <antcall target="build-params">\r
+      <param name="condition" value="website"/>\r
+    </antcall>\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <delete>\r
+      <fileset dir=".">\r
+       <!-- FIXME -->\r
+      </fileset>\r
+    </delete>\r
+  </target>\r
+\r
+</project>\r