]> source.dussan.org Git - poi.git/commitdiff
Allow the forrest task to be called from the site sub-project
authorNick Burch <nick@apache.org>
Wed, 31 Oct 2018 16:26:52 +0000 (16:26 +0000)
committerNick Burch <nick@apache.org>
Wed, 31 Oct 2018 16:26:52 +0000 (16:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1845343 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index f5984cec092ba7308e7c6b89115601fa756df88c..d15b45b74b2168fbb0e2af2042ebdbc0b1a236a7 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1799,9 +1799,11 @@ under the License.
         <fail message="Apache Forrest is not installed."/>
     </target>
 
-    <target name="docs" depends="init, -check-forrest-installed, -check-docs, javadocs"
-            unless="main.docs.notRequired" description="Builds the POI website">
-
+    <target name="docs" depends="init, -check-forrest-installed, -check-docs, javadocs, -forrest-docs"
+            unless="main.docs.notRequired" 
+            description="Builds the POI website" />
+    <target name="-forrest-docs" depends="-check-forrest-installed, -check-docs"
+            unless="main.docs.notRequired" description="Builds the HTML pages of the POI website">
         <exec executable="${env.FORREST_HOME}/bin/forrest" osfamily="unix"/>
         <exec executable="cmd" osfamily="windows">
             <arg value="/c"/>
@@ -1821,6 +1823,7 @@ under the License.
     <!-- Generates the latest/development API documentation. -->
     <target name="javadocs"
             description="Generates the API documentation">
+        <echo message="Generating latest Javadocs in ${javadocs.report.dir}"/>
         <javadoc verbose="false" author="true" destdir="${javadocs.report.dir}"
                  windowtitle="POI API Documentation" use="true" version="true"
                  maxmemory="384M" additionalparam="-notimestamp" locale="en_US"