]> source.dussan.org Git - vaadin-framework.git/commitdiff
Automatically determine the publication date and Toolkit version number for Toolkit...
authorMarko Grönroos <magi@iki.fi>
Tue, 6 Jan 2009 19:46:19 +0000 (19:46 +0000)
committerMarko Grönroos <magi@iki.fi>
Tue, 6 Jan 2009 19:46:19 +0000 (19:46 +0000)
svn changeset:6423/svn branch:trunk

build/build.xml

index 38b34a75f37539db8479827ed9289344ddfac350..c7a58f8a79e1d8fef16f65f822e215cc47cda466 100644 (file)
                </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" />