db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r158182 - in incubator/derby/docs/trunk: build.xml docs.properties
Date Sat, 19 Mar 2005 01:26:08 GMT
Author: fuzzylogic
Date: Fri Mar 18 17:26:08 2005
New Revision: 158182

URL: http://svn.apache.org/viewcvs?view=rev&rev=158182
Log:
First stab at build.xml for derby-docs

Added:
    incubator/derby/docs/trunk/build.xml
    incubator/derby/docs/trunk/docs.properties

Added: incubator/derby/docs/trunk/build.xml
URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/build.xml?view=auto&rev=158182
==============================================================================
--- incubator/derby/docs/trunk/build.xml (added)
+++ incubator/derby/docs/trunk/build.xml Fri Mar 18 17:26:08 2005
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project name="derby.docs" default="html" basedir=".">
+
+  <property file="${basedir}/docs.properties"/>
+
+  <target name="html" depends="html.getstart,html.tools,html.devguide,html.adminguide,html.ref,html.tuning"/>
+
+  <target name="init" depends="check.regex.done,dita.regex">
+    <copy todir="${basedir}/src/dtd">
+      <fileset dir="${dita.dtd.dir}"/>
+    </copy>
+  </target>
+ 
+  <target name="html.getstart" depends="init">
+    <antcall target="html.dita">
+      <param name="manual.name" value="getstart"/>
+      <param name="manual.ditamap" value="getstartderby.ditamap"/>
+    </antcall>
+  </target>
+
+  <target name="html.tools" depends="init">
+    <antcall target="html.dita">
+      <param name="manual.name" value="tools"/>
+      <param name="manual.ditamap" value="derbytools.ditamap"/>
+    </antcall>
+  </target>
+
+  <target name="html.adminguide" depends="init">
+    <antcall target="html.dita">
+      <param name="manual.name" value="adminguide"/>
+      <param name="manual.ditamap" value="derbyadmin.ditamap"/>
+    </antcall>
+  </target>
+
+  <target name="html.devguide" depends="init">
+    <antcall target="html.dita">
+      <param name="manual.name" value="devguide"/>
+      <param name="manual.ditamap" value="derbydev.ditamap"/>
+    </antcall>
+  </target>
+
+  <target name="html.ref" depends="init">
+    <antcall target="html.dita">
+      <param name="manual.name" value="ref"/>
+      <param name="manual.ditamap" value="refderby.ditamap"/>
+    </antcall>
+  </target>
+
+  <target name="html.tuning" depends="init">
+    <antcall target="html.dita">
+      <param name="manual.name" value="tuning"/>
+      <param name="manual.ditamap" value="tuningderby.ditamap"/>
+    </antcall>
+  </target>
+
+  <target name="html.dita">
+    <mkdir dir="${dita.dir}/temp"/>
+    <mkdir dir="${basedir}/out/${manual.name}"/>
+    <copy todir="${basedir}/out/${manual.name}">
+      <fileset dir="${dita.dir}/resource"
+               includes="index.html"/>
+    </copy>
+			
+    <ant dir="${dita.dir}" antfile="conductor.xml" target="dita2xhtml" inheritAll="true">
+      <property name="args.input" value="${basedir}${file.separator}src${file.separator}${manual.name}${file.separator}${manual.ditamap}"/>
+      <property name="output.dir" value="${basedir}${file.separator}out${file.separator}${manual.name}"/>
+      <property name="args.xhtml.toc" value="toc"/>
+    </ant>
+  </target>
+
+  <target name="check.regex.done">
+    <available file="${dita.script.dir}/regex.done" property="regex.done"/>
+  </target>
+
+  <target name="dita.regex" unless="regex.done">
+    <replaceregexp match="select=&quot;'.xml'&quot;" replace="select=&quot;'.dita'&quot;">
+      <fileset dir="${dita.script.dir}" includes="**/*.xsl"/>
+    </replaceregexp>
+    <touch file="${dita.script.dir}/regex.done"/>
+  </target>
+
+</project>

Added: incubator/derby/docs/trunk/docs.properties
URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/docs.properties?view=auto&rev=158182
==============================================================================
--- incubator/derby/docs/trunk/docs.properties (added)
+++ incubator/derby/docs/trunk/docs.properties Fri Mar 18 17:26:08 2005
@@ -0,0 +1,9 @@
+dita.dir=${basedir}/DITA-OT1.0
+dita.script.dir=${dita.dir}/xsl
+dita.dtd.dir=${dita.dir}/dtd
+dita.css.dir=${dita.dir}/css
+dita.resource.dir=${dita.dir}/resource
+dita.output.dir=${basedir}/out
+dita.temp.dir=${basedir}/temp
+dita.extname=.dita
+



Mime
View raw message