</javadoc>
</target>
+ <!-- ================================================================== -->
+ <!-- Build Reference Manual. -->
+ <!-- ================================================================== -->
+
+ <!-- Initialize properties especially for the Reference Manual. -->
+ <target name="init-manual" depends="">
+ <!-- Sets the current date as the publication date of the Manual. -->
+ <tstamp>
+ <format property="manual.pubdate" pattern="yyyy-MM-dd"/>
+ </tstamp>
+ </target>
+
<!-- Build PDF manual from sources or just copy it. -->
- <target name="manual-pdf" depends="build-manual-pdf, copy-manual-pdf">
+ <target name="manual-pdf" depends="init, init-manual, build-manual-pdf, copy-manual-pdf">
</target>
<!-- Just copy a prebuilt PDF manual. -->
<echo>PDF Manual: processing images (TBD)</echo>
<!-- TBD -->
<echo>PDF Manual: converting xml to fo</echo>
+
+ <echo>Publication date is ${manual.pubdate}</echo>
+
<java classname="org.apache.xalan.xslt.Process" failonerror="yes" fork="yes" maxmemory="512m">
<arg value="-xsl" />
<arg value="build/docbook/conf/custom-fo-docbook.xsl" />
<arg value="-param" />
<arg value="double.sided" />
<arg value="1" />
+ <arg value="-param" />
+ <arg value="manual.pubdate" />
+ <arg value="${manual.pubdate}" />
+ <arg value="-param" />
+ <arg value="manual.version" />
+ <arg value="${version}" />
<classpath>
<pathelement location="build/lib/xalan.jar" />
<pathelement location="build/lib/xercesImpl.jar" />
</java>
</target>
- <target name="manual-html" depends="init, preprocess-src">
+ <target name="manual-html" depends="init, init-manual, preprocess-src">
<echo>Manual: HTML</echo>
<delete file="build/docbook/conf/temp.xsl" />
<copy file="build/docbook/conf/custom-html-docbook.xsl" tofile="build/docbook/conf/temp.xsl">
<arg value="-param" />
<arg value="use.extensions" />
<arg value="1" />
+ <arg value="-param" />
+ <arg value="manual.pubdate" />
+ <arg value="${manual.pubdate}" />
+ <arg value="-param" />
+ <arg value="manual.version" />
+ <arg value="${version}" />
<classpath refid="docbook-xsl.classpath" />
</java>
<delete file="build/docbook/conf/temp.xsl" />