summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Geisert <chrisg@apache.org>2005-11-14 15:38:47 +0000
committerChristian Geisert <chrisg@apache.org>2005-11-14 15:38:47 +0000
commitde1c5f7ea039c20b9e52e02ac2fd6d3023d264d2 (patch)
treeca79d4e9be1d19f61733c7b8e596071ef7cb5b62
parent7827a12bd930176d38d71c3c00ff75754c5aaec3 (diff)
downloadxmlgraphics-fop-de1c5f7ea039c20b9e52e02ac2fd6d3023d264d2.tar.gz
xmlgraphics-fop-de1c5f7ea039c20b9e52e02ac2fd6d3023d264d2.zip
docs building with a simple forrest call instead of using import
(because of problems with plugin download and validation) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344146 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--build.xml19
-rw-r--r--forrest.properties14
2 files changed, 20 insertions, 13 deletions
diff --git a/build.xml b/build.xml
index be534ad16..1a3491006 100644
--- a/build.xml
+++ b/build.xml
@@ -62,7 +62,7 @@ list of possible build targets.
<fileset dir="${basedir}" id="dist.bin">
<include name="conf/**"/>
- <include name="docs/**"/>
+ <include name="build/site/**"/>
<include name="CHANGES"/>
<include name="LICENSE"/>
<include name="README"/>
@@ -72,7 +72,6 @@ list of possible build targets.
<exclude name="docs/**"/>
<exclude name="src/**"/>
<exclude name="dist/**"/>
- <exclude name="build/**"/>
<exclude name="lib/**"/>
</fileset>
@@ -94,7 +93,7 @@ list of possible build targets.
<exclude name="lib/classes/**"/>
<exclude name="lib/org/**"/>
<exclude name="lib/src/**"/>
- <exclude name="build/**"/>
+ <include name="build/site/**"/>
<include name="src/**"/>
<include name="conf/**"/>
<include name="hyph/hyphenation.dtd"/>
@@ -106,7 +105,7 @@ list of possible build targets.
<include name="LICENSE"/>
<include name="README"/>
<include name="STATUS"/>
- <include name="build*"/>
+ <include name="build.*"/>
<include name="fop.bat"/>
<include name="fop"/>
</fileset>
@@ -194,9 +193,11 @@ list of possible build targets.
<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" optional="true"/>
+ -->
<!-- =================================================================== -->
<!-- Initialization target -->
@@ -1028,11 +1029,15 @@ NOTE:
<!-- =================================================================== -->
<target name="docs" 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/)"/>
<echo message="FORREST_HOME = ${forrest.home}"/>
+ -->
+ <echo message="Make sure you have a propper Forrest installation (see http://forrest.apache.org/)"/>
- <antcall target="site"/>
+ <!--<antcall target="site"/>-->
+ <exec executable="forrest"/>
</target>
<!-- =================================================================== -->
@@ -1040,7 +1045,7 @@ NOTE:
<!-- =================================================================== -->
<target name="dist" depends="dist-src,dist-bin" description="Generates the distribution package"/>
- <target name="dist-bin" depends="all">
+ <target name="dist-bin" depends="all,docs">
<echo message="Building the binary distribution files (zip,tar)"/>
<fail message="A complete binary build requires Jimi" unless="jimi.present"/>
<fail message="A complete binary build requires JAI" unless="jai.present"/>
@@ -1069,7 +1074,7 @@ NOTE:
<delete file="${name}-${version}-bin.tar"/>
</target>
- <target name="dist-src" depends="all, javadocs">
+ <target name="dist-src" depends="all, javadocs, docs">
<echo message="Building the source distribution files (zip,tar)"/>
<mkdir dir="${dist.src.result.dir}"/>
<copy todir="${dist.src.result.dir}">
diff --git a/forrest.properties b/forrest.properties
index 0e1fcd209..cd6bdffc0 100644
--- a/forrest.properties
+++ b/forrest.properties
@@ -64,12 +64,13 @@ project.skin=pelt
# validation properties
#forrest.validate=true
-#forrest.validate.xdocs=${forrest.validate}
-#forrest.validate.skinconf=${forrest.validate}
-#forrest.validate.sitemap=${forrest.validate}
-#forrest.validate.stylesheets=${forrest.validate}
-#forrest.validate.skins=${forrest.validate}
-#forrest.validate.skins.stylesheets=${forrest.validate.skins}
+forrest.validate=false
+forrest.validate.xdocs=${forrest.validate}
+forrest.validate.skinconf=${forrest.validate}
+forrest.validate.sitemap=${forrest.validate}
+forrest.validate.stylesheets=${forrest.validate}
+forrest.validate.skins=${forrest.validate}
+forrest.validate.skins.stylesheets=${forrest.validate.skins}
# *.failonerror=(true|false) - stop when an XML file is invalid
#forrest.validate.failonerror=true
@@ -103,3 +104,4 @@ project.skin=pelt
# The names of plugins that are required to build the project
# comma separated list (no spaces)
# project.required.plugins=
+project.required.plugins=org.apache.forrest.plugin.output.pdf-0.1