]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
docs building with a simple forrest call instead of using import
authorChristian Geisert <chrisg@apache.org>
Mon, 14 Nov 2005 15:38:47 +0000 (15:38 +0000)
committerChristian Geisert <chrisg@apache.org>
Mon, 14 Nov 2005 15:38:47 +0000 (15:38 +0000)
(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

build.xml
forrest.properties

index be534ad16b7d2451599a3e48d2a3e4c8bfaec318..1a34910064f49283393620bc1ff063ca7a49aac5 100644 (file)
--- 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}">
index 0e1fcd209e3b525737e6e2f6d3dd32a19d821ff6..cd6bdffc0e13137f09492df98991c62fbdc5bd38 100644 (file)
@@ -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