aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index ec7132119..c7caf4650 100644
--- a/build.xml
+++ b/build.xml
@@ -185,6 +185,11 @@ list of possible build targets.
<property name="dist.bin.result.dir" value="${dist.bin.dir}/${name}-${version}"/>
<property name="dist.src.result.dir" value="${dist.src.dir}/${name}-${version}"/>
+ <!-- Importing Apache Forrest for building the docs -->
+ <property environment="env"/>
+ <property name="forrest.home" value="${env.FORREST_HOME}"/>
+ <import file="${env.FORREST_HOME}/main/forrest.build.xml"/>
+
<!-- =================================================================== -->
<!-- Initialization target -->
<!-- =================================================================== -->
@@ -908,6 +913,15 @@ list of possible build targets.
<target name="checkstyle" depends="checkstyle-avail, checkstyle-check, checkstyle-html" description="Runs Checkstyle for a code quality report"/>
<!-- =================================================================== -->
+ <!-- Creates the documentation -->
+ <!-- =================================================================== -->
+ <target name="docs" depends="site" description="Generates documentation">
+ <echo message="Building documentation with Forrest..."/>
+ <echo message="Make sure that you have installed Apache Forrest and"/>
+ <echo message="the FORREST_HOME environment variable is set (see http://forrest.apache.org/)"/>
+ </target>
+
+ <!-- =================================================================== -->
<!-- Creates the distribution -->
<!-- =================================================================== -->
<target name="dist" depends="dist-src,dist-bin" description="Generates the distribution package"/>