forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Howard Lewis Ship <hls...@gmail.com>
Subject Re: Upgrade to 0.6: validation issues
Date Mon, 18 Oct 2004 14:52:09 GMT
I tried the antproxy approach first, but the validation didn't work. 
I'll revert back to that version and copy the output:

		<property name="forrest-package-dir"
value="${external.package.dir}/apache-forrest-0.6"/>
    <property name="forrest.home" location="${forrest-package-dir}/src/core"/>

    <import file="${forrest.home}/forrest.build.xml"/>
     
		<target name="run-forrest" description="Runs Forrest to generate
final site documentation.">
			<announce message="Invoking Forrest ..."/>
           
      <antcall target="site.site"/> 
		</target>

bash-2.05b$ ant -p
Buildfile: build.xml

Main targets:

 available-skins                    What skins are available?
 clean                              Deletes all derived files in the
project and in each module.
 clean-code                         Deletes compiled code in each module.
 clean-ext-packages                 Delete all downloaded external packages.
 dist                               Build a distribution.
 dist-build                         Constructs final distribution files.
 fast-site                          Generate site documentation from
XDocs only, omitting reports.
 forrest.clean                      * Clean all directories and files
generated during the build
 forrestdoc.marshall-documentation  Copy static content into the
forrest composite, and generate dynamic reports.
 forrestdoc.run-reports             Overridden in project or module to
run dynamic reports.
 hivebuild.clean                    Deletes all derived files.
 install                            Reinvokes install in each module.
 install-dist                       Install current distributions.
 install-docs                       Copies the documentation to a
directory and unpacks it remotely.
 install-maven                      Install JARs into Maven
distribution library.
 install-skin                       Install the needed skin from the
remote repository
 marshall-documentation             Marshall documentation in the
project and in each module.
 package-skin                       Make a package of an existing skin
 run                                * Run Jetty (instant live webapp)
 run-forrest                        Runs Forrest to generate final
site documentation.
 run_custom_jetty                   Run Jetty with configuration file
found in the project
 run_default_jetty                  Run Jetty with configuration file
found in Forrest
 seed                               * Seeds a directory with a
template project doc structure
 site                               Build site documentation using Forrest.
 site.site                          * Generates a static HTML website
for this project
 validate                           Validate all: xdocs, skins, sitemap, etc
 validate-sitemap                   Validate the project sitemaps
 validate-skinchoice                Validate skin choice
 validate-skinconf                  Validate skinconf
 validate-skins                     Validate skins
 validate-stylesheets               Validate XSL files
 validate-xdocs                     Validate the project xdocs
 war                                * Generates a dynamic
servlet-based website (a packaged .war file)
 webapp                             Generates a dynamic servlet-based
website (an unpackaged webapp).
 webapp-local                       Generates a dynamic servlet-based
website (an unpackaged webapp).  Note this webapp is suitable for
local execution only, use the 'war' or
'webapp' target if you wish to deploy remotely.
Default target: install


Takes many minutes to run, because it isn't using local entity catalogs:

bash-2.05b$ ant fast-site
Buildfile: build.xml

copy-documentation-to-composite:

fast-site:

copy-documentation-to-composite:

copy-documentation-to-composite:

copy-documentation-to-composite:

run-forrest:
     [echo]
     [echo]
     [echo] *** Invoking Forrest ...
     [echo]

init-props:
     [echo] Loading project specific properties from
C:\workspace\jakarta-hivemind\forrest.properties
     [echo] Loading user specific properties from C:\Documents and
Settings\Howard\forrest.properties
     [echo] Loading default properties from
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\context\default-forrest.properties

echo-settings:
     [echo]       ------------------------------------------------
     [echo]       | Forrest template run.
     [echo]       | Running from ${forrest.home} =
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core
     [echo]       | Working on   ${project.home} = C:\workspace\jakarta-hivemind
     [echo]       ------------------------------------------------
     [echo]       | //where to put the result
     [echo]       | project.site-dir    =
C:\workspace\jakarta-hivemind/target/docs
     [echo]       | //uri to start crawling/generation process
     [echo]       | project.start-uri   = linkmap.html
     [echo]       | //cocoon cli.xconf location
     [echo]       | project.configfile  =
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core/context/WEB-INF/cli.xconf
     [echo]       | //logkit.xconf location
     [echo]       | project.logkitfile  =
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core/context/WEB-INF/logkit.xconf
     [echo]       | //temp dir to throw stuff in (i.e. work and ctxt)
     [echo]       | project.temp-dir    = target/forrest
     [echo]       | //temp working directory for generation process
     [echo]       | project.cocoon-work-dir    =
C:\workspace\jakarta-hivemind\target\forrest\cocoon-work
     [echo]       | //temp context directory for generation process
     [echo]       | project.webapp    =
C:\workspace\jakarta-hivemind\target\forrest\webapp
     [echo]       | //debuglevel for logging (DEBUG, INFO, WARN,
ERROR, FATAL_ERROR)
     [echo]       | project.debuglevel  = DEBUG
     [echo]       | //file for list of broken links
     [echo]       | project.brokenlinkfile =
C:\workspace\jakarta-hivemind\target\forrest\brokenlinks.xml
     [echo]       | //check if you have tools.jar installed
     [echo]       | tools.jar.present   = true
     [echo]       ------------------------------------------------
     [echo]       | The following properties could be removed from
future builds:
     [echo]       | //which skin to apply
     [echo]       | project.skin        = pelt
     [echo]       | //where your documentation xml is
     [echo]       | project.content-dir =
C:\workspace\jakarta-hivemind\target\forrest-composite
     [echo]       ------------------------------------------------

check-skin:

fetch-skins-descriptors:

fetch-skin:

unpack-skins:

init-skins:

init:

-prepare-classpath:

check-contentdir:

examine-proj:

validation-props:

validate-xdocs:
Warning: catalogpath listing external catalogs will be ignored

BUILD FAILED
C:\workspace\jakarta-hivemind\build.xml:40: The following error
occurred while executing this line:
C:\workspace\jakarta-hivemind\hivebuild\forrestdoc.xml:18: The
following error occurred while executing this line:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\targets\validate.xml:143:
Could not validate document
C:\workspace\jakarta-hivemind\target\forrest-compos
ite\content\xdocs\tabs.xml

Total time: 3 minutes 33 seconds
bash-2.05b$

My tabs.xml is unchanged from before, and worked in Forrest 0.5:

<?xml version="1.0" encoding="UTF-8"?>
<!--
   Copyright 2004 The Apache Software Foundation
  
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab
V1.0//EN" "http://apache.org/forrest/dtd/tab-cocoon-v10.dtd">

<tabs software="HiveMind"
  title="HiveMind Project"
  copyright="Apache Software Foundation"
  xmlns:xlink="http://www.w3.org/1999/xlink">

  <!-- The rules are:
    @dir will always have '/@indexfile' added.
    @indexfile gets appended to @dir if the tab is selected. Defaults
to 'index.html'
    @href is not modified unless it is root-relative and obviously specifies a
    directory (ends in '/'), in which case /index.html will be added
    
    HLS NOTE: I don't think the following line is accurate!
    
    If @id's are present, site.xml entries with a matching @tab will
be in that tab.
  -->

  <tab label="HiveMind Project" href="index.html" id="project"/>
  
  <tab label="Module: hivemind" dir="hivemind" href="hivemind" id="hivemind"/>
  <tab label="Module: hivemind-lib" dir="hivemind-lib"
href="hivemind-lib" id="hivemind-lib"/>
  <tab label="Example Code" dir="hivemind-examples"
href="hivemind-examples" id="hivemind-examples"/>
  
 </tabs>



On 19 Oct 2004 00:06:39 +1000, David Crossley <crossley@apache.org> wrote:
. . .

Mime
View raw message