Преглед изворни кода

Automatically determine the publication date and Toolkit version number for Toolkit Manual. The information appears in the edition notice page (the 2nd page) in the PDF version and in the main page of the HTML version. The version information is determined from build/VERSION.properties, and will include any version extensions.

svn changeset:6423/svn branch:trunk
tags/6.7.0.beta1
Marko Grönroos пре 15 година
родитељ
комит
05879b21df
1 измењених фајлова са 29 додато и 2 уклоњено
  1. 29
    2
      build/build.xml

+ 29
- 2
build/build.xml Прегледај датотеку

@@ -961,8 +961,20 @@
</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. -->
@@ -976,6 +988,9 @@
<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" />
@@ -1001,6 +1016,12 @@
<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" />
@@ -1020,7 +1041,7 @@
</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">
@@ -1056,6 +1077,12 @@
<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" />

Loading…
Откажи
Сачувај