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 13:00:54 GMT
I then modified my Ant script (it's vitally important to be able to
build from Ant):

		<target name="run-forrest" description="Runs Forrest to generate
final site documentation.">
			<announce message="Invoking Forrest ..."/>
            
      <java classname="org.apache.tools.ant.Main" fork="true" dir="${basedir}">
        <arg line="-emacs -buildfile ${forrest.home}/forrest.build.xml"/>
                
        <sysproperty key="forrest.home" value="${forrest.home}"/>
        <sysproperty key="project.home" value="${basedir}"/>
        
        <classpath>
          <fileset dir="${forrest.home}/../..">
            <include name="lib/endorsed/*.jar"/>
            <include name="tools/ant/lib/*.jar"/>
          </fileset>
        </classpath>
      </java>
     
		</target>


I'm trying to emulate what the forrest.bat script file would do.  I'm
launching a new version of Ant, using the libraries packaged with
Forrest. This works better; it validates my XML files and appears to
use the local catalog ... but it doesn't build:

run-forrest:
     [echo]
     [echo]
     [echo] *** Invoking Forrest ...
     [echo]
     [java] Buildfile:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\forrest.build.xml

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

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

     [java] check-skin:

     [java] fetch-skins-descriptors:

     [java] fetch-skin:

     [java] unpack-skins:

     [java] init-skins:

     [java] init:

     [java] -prepare-classpath:

     [java] check-contentdir:

     [java] examine-proj:

     [java] validation-props:

     [java] validate-xdocs:

     [java] validate-skinconf:

     [java] validate-sitemap:

     [java] validate-skins-stylesheets:

     [java] validate-skins:

     [java] validate-skinchoice:
     [java] ...validated existence of skin 'pelt'

     [java] validate-stylesheets:

     [java] validate:

     [java] site:

     [java] BUILD SUCCESSFUL
     [java] Total time: 2 seconds

BUILD SUCCESSFUL
Total time: 4 seconds
C:\workspace\jakarta-hivemind>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]
     [java] Buildfile:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\forrest.build.xml

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

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

     [java] check-skin:

     [java] fetch-skins-descriptors:

     [java] fetch-skin:

     [java] unpack-skins:

     [java] init-skins:

     [java] init:

     [java] -prepare-classpath:

     [java] check-contentdir:

     [java] examine-proj:

     [java] validation-props:

     [java] validate-xdocs:
     [java] 45 file(s) have been successfully validated.
     [java] ...validated xdocs

     [java] validate-skinconf:
     [java] 1 file(s) have been successfully validated.
     [java] ...validated skinconf

     [java] validate-sitemap:
     [java] ...validated sitemap

     [java] validate-skins-stylesheets:

     [java] validate-skins:

     [java] validate-skinchoice:
     [java] ...validated existence of skin 'pelt'

     [java] validate-stylesheets:

     [java] validate:

     [java] site:
     [java] Deleting directory
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\target\forrest\cocoon-work
     [java] Created dir:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\target\forrest\cocoon-work

     [java] Copying the various non-generated resources to site.
     [java] Warnings will be issued if the optional project resources
are not found.
     [java] This is often the case, because they are optional and so
may not be available.
     [java] Copying project resources and images to site ...
     [java] Warning:
C:\workspace\jakarta-hivemind\target\forrest\webapp\resources not
found.
     [java] Copying 1 file to C:\workspace\jakarta-hivemind\target\docs
     [java] Copying main skin images to site ...
     [java] Copying 21 files to
C:\workspace\jakarta-hivemind\target\docs\skin\images
     [java] Copying 13 files to
C:\workspace\jakarta-hivemind\target\docs\skin\images
     [java] Copying project skin images to site ...
     [java] Warning:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\target\forrest-composite\skins\common\images
not found.
     [java] Warning:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\target\forrest-composite\skins\pelt\images
not found.
     [java] Copying main skin css and js files to site ...
     [java] Copying 8 files to C:\workspace\jakarta-hivemind\target\docs\skin
     [java] Copying 6 files to C:\workspace\jakarta-hivemind\target\docs\skin
     [java] Copying project skin css and js files to site ...
     [java] Warning:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\target\forrest-composite\skins\common
not found.
     [java] Warning:
C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\target\forrest-composite\skins\pelt
not found.
     [java] Finished copying the non-generated resources.
     [java] Now Cocoon will generate the rest ...

     [java] Static site will be generated at:
     [java] C:\workspace\jakarta-hivemind/target/docs

     [java] Note that there are various reasons for "build failed" messages.
     [java] * Cocoon will report the status of each document:
     [java]   - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
     [java] * Even if only one link is broken, you will still get "failed".
     [java] * Your site would still be generated, but some pages would
be broken.
     [java] * Please check the file:
     [java] C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\target\forrest\brokenlinks.xml
     [java] for any broken links in the generated site.
     [java] ------------------------------------------------------------------------
     [java] cocoon 2.2.0-dev
     [java] Copyright (c) 1999-2004 Apache Software Foundation. All
rights reserved.
     [java] ------------------------------------------------------------------------


     [java] Cannot find CatalogManager.properties
     [java] X [0]                                     linkmap.html    
 BROKEN: C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\context\target\forrest\bu
ild-info.xml (The system cannot find the path specified)
     [java] Total time: 0 minutes 5 seconds,  Site size: 0 Site pages: 0

     [java] BUILD FAILED
     [java] C:\workspace\jakarta-hivemind\ext-package\apache-forrest-0.6\src\core\targets\site.xml:43:
Java returned: 1

     [java] Total time: 20 seconds
     [java] Java Result: 1

I have no idea what this build-info.xml file is about!  This is not a
useful error message for me, and leaves me at a loss as to how to
proceed.  Other than updating the PUBLIC IDs of my xml files, I've
changed nothing else.

Mime
View raw message