]> granicus.if.org Git - docbook-dsssl/commitdiff
Added lib ant build support
authorJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 18:42:58 +0000 (18:42 +0000)
committerJirka Kosek <jirka@kosek.cz>
Fri, 15 Aug 2014 18:42:58 +0000 (18:42 +0000)
xsl/build.xml
xsl/lib/build.xml [new file with mode: 0644]
xsl/tools/build-shared.xml

index 10553f742dc7b4f865e98901ee5065e6511aa8db..a1e3aa2feb13cc535567bd92a8c5a8d01bffcd18 100644 (file)
@@ -18,7 +18,7 @@
 \r
   <target name="build">\r
     <ant dir="common"/>\r
-    <!-- FIXME: lib, should be generated using xweb -->\r
+    <ant dir="lib"/>\r
     <ant dir="html"/>\r
     <ant dir="fo"/>\r
     <ant dir="manpages"/>\r
@@ -38,6 +38,7 @@
 \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/lib/build.xml b/xsl/lib/build.xml
new file mode 100644 (file)
index 0000000..8412dee
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project name="DocBook XSLT 1.0 stylesheets - HTML" default="all">\r
+\r
+  <property name="dbroot.dir" value="${ant.file}/../.."/>\r
+  <import file="../tools/build-shared.xml"/>\r
+\r
+  <target name="all" depends="lib">\r
+  </target>\r
+\r
+  <target name="lib">\r
+    <echo>Building XSLT library...</echo>\r
+    <antcall target="build-params">\r
+      <param name="condition" value="lib"/>\r
+      <param name="file" value="lib"/>\r
+    </antcall>\r
+  </target>\r
+\r
+  <target name="clean">\r
+    <antcall target="clean-params">\r
+      <param name="file" value="lib"/>\r
+    </antcall>\r
+  </target>\r
+\r
+</project>\r
index aabf318175359ae9d627761999b9415b1e66f6ca..f7670a03e771afca97777ba049fedbe57dd84558 100644 (file)
   </taskdef>\r
 \r
   <target name="build-params">\r
+    <property name="file" value="param"/>\r
     <!-- FIXME parameter checking -->\r
-    <xslt in="param.xweb" out=".param.profiled" style="../profiling/profile.xsl">\r
+    <xslt in="${file}.xweb" out=".${file}.profiled" style="../profiling/profile.xsl">\r
       <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
       <classpath refid="saxon.classpath"/>\r
       <param name="profile.condition" expression="${condition}"/>\r
     </xslt>\r
-    <xslt in=".param.profiled" out=".param.stripped" style="../profiling/strip-attributes.xsl">\r
+    <xslt in=".${file}.profiled" out=".${file}.stripped" style="../profiling/strip-attributes.xsl">\r
       <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
       <classpath refid="saxon.classpath"/>\r
       <param name="attributes" expression="condition"/>\r
     </xslt>\r
-    <xslt in=".param.stripped" out=".param.dbkns" style="../../releasetools/xtangle.xsl">\r
+    <xslt in=".${file}.stripped" out=".${file}.dbkns" style="../../releasetools/xtangle.xsl">\r
       <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
       <classpath refid="saxon.classpath"/>\r
     </xslt>\r
-    <xslt in=".param.dbkns" out="param.xsl.tmp" style="../tools/xsl/build/fix-params-ns.xsl">\r
+    <xslt in=".${file}.dbkns" out="${file}.xsl.tmp" style="../tools/xsl/build/fix-params-ns.xsl">\r
       <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
       <classpath refid="saxon.classpath"/>\r
     </xslt>\r
-    <xslt in="param.xsl.tmp" out="param.xsl" style="../tools/xsl/build/addnewline.xsl">\r
+    <xslt in="${file}.xsl.tmp" out="${file}.xsl" style="../tools/xsl/build/addnewline.xsl">\r
       <factory name="com.icl.saxon.TransformerFactoryImpl"/>\r
       <classpath refid="saxon.classpath"/>\r
     </xslt>\r
   </target>\r
 \r
   <target name="clean-params">\r
+    <property name="file" value="param"/>\r
     <delete>\r
       <fileset dir=".">\r
-       <include name=".param.profiled"/>\r
-       <include name=".param.stripped"/>\r
-       <include name=".param.dbkns"/>\r
-       <include name="param.xsl.tmp"/>\r
-       <include name="param.xsl"/>\r
+       <include name=".${file}.profiled"/>\r
+       <include name=".${file}.stripped"/>\r
+       <include name=".${file}.dbkns"/>\r
+       <include name="${file}.xsl.tmp"/>\r
+       <include name="${file}.xsl"/>\r
       </fileset>\r
     </delete>\r
   </target>\r