]> source.dussan.org Git - vaadin-framework.git/commitdiff
Rebuild PDF manual if possible.
authorMarko Grönroos <magi@iki.fi>
Wed, 7 May 2008 16:50:21 +0000 (16:50 +0000)
committerMarko Grönroos <magi@iki.fi>
Wed, 7 May 2008 16:50:21 +0000 (16:50 +0000)
svn changeset:4377/svn branch:trunk

build/build.xml

index 4a1fc22c375e253f94428ca97f8022b1c7c502d2..d42cf1d5c594ffb3c9cedb6a65e55d472b0656f4 100644 (file)
@@ -89,6 +89,9 @@
                <property file="build/VERSION.properties" />
                <property file="build/html-style.properties" />
 
+               <!-- Can run XEP only if license is available. -->
+        <available file="build/lib/XEP/license.xml" property="xep.license.available"/>
+
                <!-- Create result dir unless already exists -->
                <mkdir dir="${result-path}" />
                <!-- Find out which platform we are in -->
                </javadoc>
        </target>
 
+       <!-- Build PDF manual from sources or just copy it. -->
+    <target name="manual-pdf" depends="build-manual-pdf, copy-manual-pdf">
+    </target>
+       
+       <!-- Just copy a prebuilt PDF manual. -->
+    <target name="copy-manual-pdf" unless="xep.license.available">
+        <echo>PDF Manual: No XEP license available, just copy a prebuilt PDF.</echo>
+        <copy file="doc/manual/book.pdf" tofile="${output-dir}/WebContent/doc/manual.pdf" />
+    </target>
+
        <!-- XEP-based FO building -->
-       <target name="manual-pdf">
+       <target name="build-manual-pdf" if="xep.license.available">
                <echo>PDF Manual: processing images (TBD)</echo>
                <!-- TBD -->
                <echo>PDF Manual: converting xml to fo</echo>