forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: xml-forrest/tools/centipede/targets docs.xtarget
Date Sun, 03 Mar 2002 08:26:32 GMT
stevenn     02/03/03 00:26:32

  Modified:    .        build.xml
               src/targets interactive.xtarget project.xtarget
  Added:       lib/core avalon-excalibur-4.1.jar avalon-framework-4.1.2.jar
                        avalon-scratchpad-20020212.jar batik-libs-1.1.1.jar
                        cocoon-scratchpad-part.jar cocoon.jar
                        jakarta-regexp-1.2.jar jisp_1_0_2.jar
                        logkit-1.0.1.jar resolver-20020130.jar
               src/documentation cocoon.xconf
  Removed:     tools/centipede/targets docs.xtarget
  moved cocoon away from centipede, making it part of forrest
  Revision  Changes    Path
  1.2       +0 -3      xml-forrest/build.xml
  Index: build.xml
  RCS file: /home/cvs/xml-forrest/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	26 Feb 2002 23:50:24 -0000	1.1
  +++ build.xml	3 Mar 2002 08:26:31 -0000	1.2
  @@ -39,7 +39,6 @@
   <!ENTITY dev-target     SYSTEM "./tools/centipede/targets/dev.xtarget"> 
   <!ENTITY test-target    SYSTEM "./tools/centipede/targets/test.xtarget"> 
   <!ENTITY robot-target   SYSTEM "./tools/centipede/targets/robot.xtarget"> 
  -<!ENTITY docs-target    SYSTEM "./tools/centipede/targets/docs.xtarget"> 
   <!-- =================================================================== -->
  @@ -178,8 +177,6 @@
     <!-- Testcases targets       -->  &test-target;
     <!-- =================================================================== -->
     <!-- "Scripts" targets       -->  &robot-target;
  -  <!-- =================================================================== -->
  -  <!-- Documentation targets   -->  &docs-target;  
     <!-- =================================================================== -->
  1.1                  xml-forrest/lib/core/avalon-excalibur-4.1.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/avalon-framework-4.1.2.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/avalon-scratchpad-20020212.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/batik-libs-1.1.1.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/cocoon-scratchpad-part.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/cocoon.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/commons-collections-1.0.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/commons-httpclient-20011012.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/jakarta-regexp-1.2.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/jisp_1_0_2.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/logkit-1.0.1.jar
  	<<Binary file>>
  1.1                  xml-forrest/lib/core/resolver-20020130.jar
  	<<Binary file>>
  1.1                  xml-forrest/src/documentation/cocoon.xconf
  Index: cocoon.xconf
  <?xml version="1.0"?>
  <cocoon version="2.0">
    <!-- The sitemap language -->
    <language name="sitemap" class="org.apache.cocoon.treeprocessor.sitemap.SitemapLanguage">
      <!-- Namespace for this language -->
      <namespace uri=""/>
      <!-- File name for files in this language, relative to the environment prefix -->
      <file name="sitemap.xmap"/>
      <!-- Description of the element for nodes parameters -->
      <parameter element="parameter"/>
      <!-- roles for the sitemap language -->
        <role name="org.apache.cocoon.acting.ActionSelector"
        <role name="org.apache.cocoon.selection.SelectorSelector"
        <role name="org.apache.cocoon.matching.MatcherSelector"
          <hint shorthand="regexp-uri-matcher"
          <hint shorthand="wildcard-uri-matcher"
        <role name="org.apache.cocoon.generation.GeneratorSelector"
          <hint shorthand="file-generator"
          <hint shorthand="XSP-generator"
        <role name="org.apache.cocoon.transformation.TransformerSelector"
          <hint shorthand="XSLT-transformer"
          <hint shorthand="cinclude-transformer"
        <role name="org.apache.cocoon.serialization.SerializerSelector"
        <role name="org.apache.cocoon.reading.ReaderSelector"
        <role name="org.apache.cocoon.components.notification.NotifyingBuilder"
      <!-- node definitions for the sitemap language -->
        <!-- All node names are given as local names in the above namespace (no prefix) -->
        <!-- Sitemap root node -->
        <node name="sitemap" builder="org.apache.cocoon.treeprocessor.sitemap.SitemapNodeBuilder">
          <allowed-children>components, views, action-sets, resources, pipelines</allowed-children>
        <!-- Components definition : parse view info associated to components
             (actual components creation is done by SitemapLanguage) -->
        <node name="components" 
        <node name="pipelines" 
        <node name="views" builder="org.apache.cocoon.treeprocessor.CategoryNodeBuilder"/>
        <node name="view" builder="org.apache.cocoon.treeprocessor.sitemap.ViewNodeBuilder"/>
        <node name="resources" builder="org.apache.cocoon.treeprocessor.CategoryNodeBuilder"/>
        <node name="resource" builder="org.apache.cocoon.treeprocessor.NamedContainerNodeBuilder"/>
        <node name="action-sets" builder="org.apache.cocoon.treeprocessor.CategoryNodeBuilder"/>
        <node name="action-set" 
        <node name="pipeline" builder="org.apache.cocoon.treeprocessor.sitemap.PipelineNodeBuilder">
          <forbidden-children>sitemap, components, pipelines</forbidden-children>
        <node name="match" builder="org.apache.cocoon.treeprocessor.sitemap.MatchNodeBuilder">
          <forbidden-children>sitemap, components, pipeline, handle-errors</forbidden-children>
        <node name="select" builder="org.apache.cocoon.treeprocessor.sitemap.SelectNodeBuilder"/>
        <node name="act" builder="org.apache.cocoon.treeprocessor.sitemap.ActNodeBuilder">
          <forbidden-children>sitemap, components, pipeline, handle-errors</forbidden-children>
        <node name="redirect-to" 
        <node name="call" builder="org.apache.cocoon.treeprocessor.sitemap.CallNodeBuilder"/>
        <node name="mount" builder="org.apache.cocoon.treeprocessor.sitemap.MountNodeBuilder"/>
        <node name="read" builder="org.apache.cocoon.treeprocessor.sitemap.ReadNodeBuilder"/>
        <node name="aggregate" 
        <node name="generate" builder="org.apache.cocoon.treeprocessor.sitemap.GenerateNodeBuilder"/>
        <node name="transform" 
        <node name="serialize" 
        <node name="handle-errors" 
    <!-- Source Handler:
      The source handler adds special url protocols to the system, they are
      then available inside Cocoon, e.g. as a source argument for one of the
      sitemap components.
    <source-handler logger="core.source-handler">
      <!-- file protocol : this is a WriteableSource -->
      <protocol name="file" class="org.apache.cocoon.components.source.FileSourceFactory"/>
    <!-- Entity resolution catalogs: *********************************************
      The default catalog is distributed at /resources/schema/catalog
      This is the contextual pathname for Cocoon resources.
      You can override this path, if necessary, using the "catalog" parameter.
     <parameter name="catalog" value="/resources/schema/catalog"/>
      However, it is probably desirable to leave this default catalog config
      and declare your own local catalogs, which are loaded in addition to
      the system catalog.
      There are various ways to do local configuration (see "Entity Catalogs"
      documentation). One way is via the file.
      As an additional method, you can specify the "local-catalog" parameter here.
      The full filesystem pathname to a single local catalog file.
     <parameter name="local-catalog" value="/usr/local/sgml/mycatalog"/>
      The level of messages for status/debug (messages go to standard output)
      The following messages are provided ...
       0 = none
       1 = ? (... not sure yet)
       2 = 1+, Loading catalog, Resolved public, Resolved system
       3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
       10 = 3+, List all catalog entries when loading a catalog
      (Cocoon also logs the "Resolved public" messages.) 
      TODO: determine all messages at each level
     <parameter name="verbosity" value="2"/>
    ************************************************************************** -->
    <entity-resolver class="org.apache.cocoon.components.resolver.ResolverImpl"
     <parameter name="catalog" value="/resources/schema/catalog"/>
     <parameter name="verbosity" value="1"/>
  <!-- ================ Apache Cocoon configuration file ================== -->
  <!-- For full description of the components and their parameters ...
       - Apache Cocoon User Documentation at /userdocs/
       - webapp/cocoon.xconf (this file) - describes each core component
       - each optional component/.../*.xconf - these describe the parameters
       for each component and are automatically included at build-time.
       The notes that accompany the settings below are intended to be concise.
  <!-- ===================== General Components =========================== -->
    <!-- Parser:
      The default parser used in Apache Cocoon is
      org.apache.avalon.excalibur.xml.JaxpParser. Apache Cocoon requires a 
      JAXP 1.1 parser.
      If you have problems because your servlet environment uses its own
      parser not conforming to JAXP 1.1 try using the alternative
      XercesParser instead of the JaxpParser. To activate the XercesParser,
      change the class attribute to
      You will also need to add a system property to your JVM,
      probably on the startup of your servlet engine like this:
      Configuration for the JaxpParser (not the XercesParser!):
      - validate (boolean, default = false): This parameter causes the parser 
          to be a validating parser.
          XML validation is only being used for the documentation build.
          (If you are going to use it elsewhere, then do so with caution.)
          You really should have validated all of your XML documents already,
          according to their proper DTD or schema. Do not expect Cocoon to do it.
      - namespace-prefixes (boolean, default = false) : do we want
          namespaces declarations also as 'xmlns:' attributes ?
          Note : setting this to true confuses some XSL processors (e.g. Saxon).
      - stop-on-warning (boolean, default = true) : should the parser
          stop parsing if a warning occurs ?
      - stop-on-recoverable-error (boolean, default = true) : should the parser
          stop parsing if a recoverable error occurs ?
      - reuse-parsers (boolean, default = true) : do we want to reuse
          parsers or create a new parser for each parse ?
          Note : even if this parameter is true, parsers are not
          recycled in case of parsing errors : some parsers (e.g. Xerces) don't like
          to be reused after failure.
      - sax-parser-factory (string) : the name of the SAXParserFactory
          implementation class to be used instead of using the standard JAXP mechanism
          (SAXParserFactory.newInstance()). This allows to choose
          unambiguously the JAXP implementation to be used when several of them are
          available in the classpath.
      - document-builder-factory (string) : the name of the
          DocumentBuilderFactory implementation to be used (similar to
          sax-parser-factory for DOM).
    <xml-parser class="org.apache.avalon.excalibur.xml.JaxpParser"
      <parameter name="validate" value="false"/>
      <parameter name="namespace-prefixes" value="false"/>
      <parameter name="stop-on-warning" value="true"/>
      <parameter name="stop-on-recoverable-error" value="true"/>
      <parameter name="reuse-parsers" value="true"/>
      <parameter name="sax-parser-factory" value="???"/>
      <parameter name="document-builder-factory" value="???"/>
    <!-- ============================ STORE ============================ -->
    <!-- Persistent store for the cache. Two store implementations to choose
           * FilesystemStore: Simple. Dependable. Thorougly tested.
           * JispFilesystemStore: Scalable. New kid on the block. Not thorougly tested.
         If you opt in to use JispFilesystemStore, comment out FilesystemStore
         JispFilesystemStore configuration parameters
         (in addition to common parameters):
           datafile: name of the store file to use.
           indexfile: name of the index file to use.
           order: FIXME: put description here.
    <cache-persistent class=""
      <parameter name="use-cache-directory" value="true"/>
      <parameter name="datafile" value="cocoon-cache.dat"/>
      <parameter name="indexfile" value="cocoon-cache.idx"/>
      <parameter name="order" value="1701"/>
    <cache-persistent class=""
      <parameter name="use-cache-directory" value="true"/>
    <cache-persistent class=""
      <parameter name="use-cache-directory" value="true"/>
      <parameter name="datafile" value="cocoon-cache.dat"/>
      <parameter name="indexfile" value="cocoon-cache.idx"/>
      <parameter name="order" value="1701"/>
    <!-- Memory Storing: -->
    <cache-transient class=""
       <!-- Indicates how many objects will be hold in the cache.
       When the number of maxobjects has been reached. The last object in the 
       cache will be thrown out. -->
       <parameter name="maxobjects" value="100"/>
       <!-- Turns the swapping of the objects into persistent cache on
            and off. -->
       <parameter name="use-persistent-cache" value="true"/>
    <!-- Store Janitor:
      Be careful with the heapsize and freememory parameters. Wrong values can
      cause high cpu usage. Example configuration:
      Jvm settings: 
        -Xms100000000 -Xmx200000000
      store-janitor settings:
         <parameter name="freememory" value="5000000"/>
         <parameter name="heapsize" value="150000000"/>
      Heapsize *must* be higher then the -Xms parameter and *must* be lower or
      equal than -Xmx. It is recommended to have heapsize equal to -Xmx, especially
      on Sun's JVM which are unable to shrink its heap once it grows above minimum. 
      Freememory parameter *must* be lower than -Xms, and should be greater than
      amount of memory necessary for normal application operation.
    <store-janitor class=""
       <!-- How much free memory shall be available in the jvm -->                 
       <parameter name="freememory" value="1000000"/>
       <!-- Indicates the limit of the jvm memory consumption. The default max 
       heapsize for Sun's JVM is 64Mb -->
       <parameter name="heapsize" value="67108864"/>
       <!-- How often shall the cleanup thread check memory -->
       <parameter name="cleanupthreadinterval" value="10"/>
       <!-- Indicates the thread priority of the cleanup thread -->
       <parameter name="threadpriority" value="5"/>
       <!-- How much percent of the elements of each registered Store shall
       be removed when low on memory. Default 10% -->
       <parameter name="percent_to_free" value="10"/>
    <!-- ============================ STORE END ========================= -->
    <!-- XSLT Processor:
      For Xalan: Turn 'incremental-processing' to true if you want a continous output (if set to 
  false the transformer 
      delivers SAX events after all transformations has been done). -->
    <xslt-processor class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
       <parameter name="use-store" value="true"/>
       <parameter name="incremental-processing" value="false"/>
    <!-- Xpath Processor:
    <xpath-processor class="org.apache.cocoon.components.xpath.XPathProcessorImpl"
    <!-- URL Factory:
      The url factory adds special url protocols to the system, they are then
      available inside Cocoon, e.g. as a source argument for one of the sitemap
    <url-factory logger="core.url-factory">
      <!-- Allows access to resources available from the ClassLoader,
           using getResource() method. -->
      <protocol name="resource" class="org.apache.cocoon.components.url.ResourceURLFactory"/>
      <!-- Allows access to resources available from the servlet context,
           using getResource() method. -->
      <protocol name="context"  class="org.apache.cocoon.components.url.ContextURLFactory"/>
      <!-- Add here protocol factories for your own protocols -->
    <!-- Program Generator:
      The ProgamGenerator builds programs from a XML document written in a
         root-package: persistent code repository.
    <program-generator logger="core.program-generator">
      <parameter name="auto-reload" value="true"/>
      <parameter name="root-package" value="org.apache.cocoon.www"/>
      <parameter name="preload" value="true"/>
    <!-- Xscript:
    <xscript logger="core.xscript">
      <parameter name="xscript:copy-of" 
      <parameter name="xscript:value-of" 
    <!-- Programming Languages: -->
      <java-language name="java" logger="">
        <!-- Compiler parameter specifies which class to use to compile Java.
             Possible variants are:
               Javac. Requires javac.jar (included with Cocoon distribution).
               Pizza. Requires pizza.jar (included with Cocoon distribution).
               Jikes. Requires IBM jikes compiler to be present in the PATH  -->
        <parameter name="compiler" 
        <!-- Specifies which formatter to use to format source code.
             This parameter is optional. 
             It is commented out because of bug #5689: Java "code-formatter" incorrectly formats 
  double values
        <parameter name="code-formatter" 
        <!-- A singleton-like implementation of a ClassLoader -->
        <parameter name="class-loader" 
    <!-- Class loader:
      A singleton-like implementation of a ClassLoader.
    <classloader class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"
    <!-- Markup Languages:
      This section defines several builtin logicsheets. A logicsheet is an XML
      filter used to translate user-defined, dynamic markup into equivalent
      code embedding directives for a given markup language.
      <xsp-language name="xsp" logger="core.markup.xsp">
        <parameter name="prefix" value="xsp"/>
        <parameter name="uri" value=""/>
        <!-- Defines the XSP Core logicsheet for the Java language -->
        <target-language name="java">
          <parameter name="core-logicsheet" 
          <!-- The Request logicsheet (taglib) is an XSP logicsheet that wraps XML tags 
               around standard request operations -->
            <parameter name="prefix" value="xsp-request"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
          <!-- The Response logicsheet (taglib) is an XSP logicsheet that wraps XML tags 
               around standard response operations -->
            <parameter name="prefix" value="xsp-response"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
          <!-- The Session logicsheet (taglib) is an XSP logicsheet that wraps XML tags around 
               standard session operations. Specifically, the Session logicsheet provides an 
               XML interface to most methods of the HttpSession object (see the Java Servlet API 
               Specification, version 2.2 ) for more information. -->
            <parameter name="prefix" value="session"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
          <!-- The Cookie logicsheet (taglib) is an XSP logicsheet that wraps XML tags 
               around standard cookie operations -->
            <parameter name="prefix" value="xsp-cookie"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
          <!-- The ESQL logicsheet is an XSP logicsheet that performs sql queries and 
               serializes their results as XML. This allows you to work with data from a 
               wide variety of different sources when using Apache Cocoon. -->
            <parameter name="prefix" value="esql"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
            <parameter name="prefix" value="log"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
            <parameter name="prefix" value="util"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
          <!-- The xsp-formval taglib serves as interface to retrieve validation results 
               from a request attribute -->
            <parameter name="prefix" value="xsp-formval"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
          <!-- The sel taglib allows to put multiple pages / view into
               one xsp. While in general it is good style to put
               different views into different xsp because they're more
               easily maintained, this is a useful feature with
               e.g. with long forms that are broken into parts -->
            <parameter name="prefix" value="sel"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
            <parameter name="prefix" value="action"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
          <!-- The capture taglib is for capturing parts of the XSP-generated XML as
               XML fragments or DOM nodes -->
            <parameter name="prefix" value="capture"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
            <parameter name="prefix" value="xscript"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
            <parameter name="prefix" value="soap"/>
            <parameter name="uri" value=""/>
            <parameter name="href" 
      <!-- Defines Sitemap Core logicsheet for the Java language -->
      <sitemap-language name="sitemap" logger="core.markup.sitemap">
        <parameter name="prefix" value="map"/>
        <parameter name="uri" value=""/>
        <target-language name="java">
          <parameter name="core-logicsheet" 
    <!-- Datasources example:
      <jdbc name="personnel" logger="core.datasources.personnel">
        <pool-controller min="5" max="10" oradb="true"/>
        <pool-controller min="5" max="10"/>
    <!-- Stream Pipeline:
      Either collects a Reader and lets it produce a character stream
      or connects an EventPipeline with a Serializer and lets them produce
      the character stream. Alternatives to CachingStreamPipeline are:
      <stream-pipeline class="org.apache.cocoon.components.pipeline.NonCachingStreamPipeline"/>
    <stream-pipeline class="org.apache.cocoon.components.pipeline.CachingStreamPipeline"
                     pool-max="32" pool-min="2" pool-grow="4"/>
    <!-- Event Pipeline:
      Connects the generator and the various transformers and produces a
      character stream. Alternatives to CachingEventPipeline are:
      <event-pipeline class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
      <event-pipeline class="org.apache.cocoon.components.profiler.ProfilingCachingEventPipeline"/>
    <event-pipeline class="org.apache.cocoon.components.pipeline.CachingEventPipeline"
                    pool-max="32" pool-min="2" pool-grow="4"/>
    <!-- Compiling xml to byte streams.
      The xml-serializer "compiles" xml sax events into a byte stream
      and the xml-deserializer does the same vice versa.
      Make sure, that if you change one of these components, that you
      may have to change the other one as well, as they might have
      a dependency.
    <xml-serializer class="org.apache.cocoon.components.sax.XMLByteStreamCompiler"
    <xml-deserializer class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter"
    <!-- SAXConnector:
      Connects the various pipeline components.
      LoggingSAXConnector logs SAX events between pipeline components
      into cocoon's log file.
      ProfilingSAXConnector gathers timing information.
      Uncomment one of the following lines for using the SAXConnector.
    <sax-connector class="org.apache.cocoon.components.saxconnector.LoggingSAXConnector"/>
    <sax-connector class="org.apache.cocoon.components.profiler.ProfilingSAXConnector"/>
    <!-- Profiler:
      The profiler facilitates the gathering of statistics about timings of
      different steps of pipelines. Profiler consists of several components:
       profiling pipeline, profiling SAX connector, and profiler generator
      which are used to generate the profile report. You need to enable all of
      these components to use profiler.
      Uncomment the following line to use profiler.
    <!-- Resource Monitor:
      The Monitor keeps track on changes to a Resource.
    <monitor logger="core.monitor">
      <thread priority="5" frequency="10000"/>
  <!-- ======================== The sitemap  ============================== -->
    <!-- Reloading of the sitemap:
      The check-reload attribute determines if the sitemap is reloaded on change.
      Set to "no", the sitemap is generated once at startup.
      Set to "yes", the sitemap is regenerated if it changes.
      The reload-method specifies the method for the regeneration:
      asynchron: If the sitemap changes, the sitemap is regenerated at the
                 next request in the background and the incoming request is
                 served with the old sitemap. All subsequent requests are
                 served with the old sitemap until the regeneration in the
                 background has finished.
      synchron: If the sitemap changes, the sitemap is regenerated at the
                next request. When the regeneration is finished, the request
                (and all subsequent ones) is served with the new sitemap.
      For development environment, set the reload-method to synchron and the
      check-reload to yes.
      For production environment, it is advisable to set the reload-method to
      asynchron and for more safety the check-reload to no.
    <sitemap file="sitemap.xmap" reload-method="asynchron" check-reload="yes" logger="sitemap"/>
    <sitemap class="org.apache.cocoon.treeprocessor.TreeProcessor" logger="sitemap"/>
  <!-- ===================== Sitemap Components =========================== -->
    <!-- Here defined some core Cocoon sitemap components, as File generator
         or XSLT transformer. Note that syntax of this file slightly differs
         from the syntax of <map:components> section of the sitemap.xmap file.
      <component-instance name="file" class="org.apache.cocoon.generation.FileGenerator"
                          pool-max="32" pool-min="2" pool-grow="4"/>
      <component-instance name="serverpages" class="org.apache.cocoon.generation.ServerPagesGenerator"
                          pool-max="32" pool-min="0" pool-grow="2"/>
      <component-instance name="xslt" class="org.apache.cocoon.transformation.TraxTransformer"
                          pool-max="32" pool-min="2" pool-grow="4">
     <component-instance name="links" class="org.apache.cocoon.serialization.LinkSerializer"
                         pool-max="32" pool-min="2" pool-grow="4"/>
     <component-instance name="xml" class="org.apache.cocoon.serialization.XMLSerializer"
                         pool-max="32" pool-min="2" pool-grow="4"/>
     <component-instance name="html" class="org.apache.cocoon.serialization.HTMLSerializer"
                         pool-max="32" pool-min="4" pool-grow="4">
     <component-instance name="resource" class="org.apache.cocoon.reading.ResourceReader"
  1.2       +1 -1      xml-forrest/src/targets/interactive.xtarget
  Index: interactive.xtarget
  RCS file: /home/cvs/xml-forrest/src/targets/interactive.xtarget,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- interactive.xtarget	26 Feb 2002 23:50:27 -0000	1.1
  +++ interactive.xtarget	3 Mar 2002 08:26:32 -0000	1.2
  @@ -15,7 +15,7 @@
       <echo message=" Builds will be in /build directory, distributions in /dist."/>        
       <echo message="  "/>    
       <echo message=" compile ------ compiles the source code "/>     
  -    <echo message=" docs --------- generates the html docs"/>        
  +    <echo message=" docs --------- generates the html docs using forrest itself"/>        
       <echo message=" cleandocs ---- cleans the build docs directory"/>    
       <echo message=" javadocs ----- generates the API documentation"/>     
       <echo message=" test --------- performs the jUnit tests"/>       
  1.2       +177 -4    xml-forrest/src/targets/project.xtarget
  Index: project.xtarget
  RCS file: /home/cvs/xml-forrest/src/targets/project.xtarget,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- project.xtarget	26 Feb 2002 23:50:27 -0000	1.1
  +++ project.xtarget	3 Mar 2002 08:26:32 -0000	1.2
  @@ -1,9 +1,182 @@
     <!-- =================================================================== -->
  -  <!-- Extra targets for this project                                      -->
  +  <!-- Targets for this project                                            -->
     <!-- =================================================================== -->
  +  <!-- =================================================================== -->
  +  <!-- Prepares the docs                                                   -->
  +  <!-- =================================================================== -->
  +  <target name="prepare-docs" depends="init">
  +    <mkdir dir="${build.context}"/>
  +    <mkdir dir="${build.context}/images"/>
  +    <mkdir dir="${}"/>
  +    <mkdir dir="${build.dir}/work"/>
  +    <!-- make filtered copy of XML docs -->
  +    <copy todir="${build.context}" filtering="on">
  +      <fileset dir="${context.dir}">
  +        <exclude name="images/**"/>
  +      </fileset>
  +    </copy>
  +    <!-- Copy images -->
  +    <copy todir="${build.context}/images" filtering="off">
  +      <fileset dir="${context.dir}/images"/>
  +    </copy>
  +    <!-- Copy entity catalog and entities -->
  +    <copy todir="${build.context}/resources/schema" filtering="on">
  +      <fileset dir="${resource.dir}/schema"/>
  +    </copy>
  +    <mkdir dir="${build.context}/WEB-INF/classes"/>
  +    <move todir="${build.context}/WEB-INF/classes">
  +      <fileset dir="${build.context}/resources/schema">
  +        <include name=""/>
  +      </fileset>
  +    </move>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- Set a variable if the generated docs are already up-to-date.        -->
  +  <!-- =================================================================== -->
  +  <target name="docs_check" depends="init">
  +    <uptodate property="docs.notrequired" targetfile="${}/index.html" >
  +      <srcfiles dir="." includes="project-info.xml"/>
  +      <srcfiles dir="${context.dir}/xdocs" includes="**/*.xml"/>
  +    </uptodate>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- If generated  docs is already up-to-date, print a message saying so. -->
  +  <!-- =================================================================== -->
  +  <target name="docs_done" if="docs.notrequired">
  +    <echo message="-------------------------------------------------------------"/>
  +    <echo message="Not rebuilding docs, as they are up-to-date:"/>
  +    <echo message="  ${}/index.html is more recent than"/>
  +    <echo message="  project-info.xml and ${context.dir}/xdocs/*.xml"/>
  +    <echo message="-------------------------------------------------------------"/>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- If generated  docs is already up-to-date, print a message saying so. -->
  +  <!-- =================================================================== -->
  +  <target name="making-docs">
  +    <echo message="-------------------------------------------------------------"/>
  +    <echo message="  Building docs, please stand by ..."/>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- The documentation system                                            -->
  +  <!-- =================================================================== -->
  +  <target name="docs"
  +          depends="package, prepare-docs, docs_check, making-docs, docs_done"
  +          unless="docs.notrequired"
  +          description="* Generates the documentation">
  +    <java classname="org.apache.cocoon.Main" fork="true" dir="${build.context}" failonerror="true">
  +      <arg value="-c."/>
  +      <arg value="-d../docs"/>
  +      <arg value="-w../work"/>
  +      <arg value="-l../work/cocoon.log"/>
  +      <arg value="-uERROR"/>
  +      <arg value="index.html"/>
  +      <classpath>
  +        <path refid="classpath"/>
  +        <fileset dir="${build.dir}">
  +          <include name="*.jar"/>
  +        </fileset>
  +        <fileset dir="${tools.dir}">
  +          <include name="*/lib/*.jar"/>
  +        </fileset>   
  +        <pathelement location="${tools.jar}"/>
  +        <pathelement location="${build.context}/WEB-INF/classes"/>
  +      </classpath>
  +    </java>
  +    <echo message=" generated succesfully in ./build/docs ."/>
  +    <echo message="-------------------------------------------------------------"/>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- Create the announcements                                            -->
  +  <!-- =================================================================== -->
  + <target name="announcement" depends="prepare" description="* Creates the announcement for new releases">
  +    <copy file="${project-info}" tofile="${build.project-info}" filtering="on"/>
  +    <style basedir="./" destdir="./" style="${projectinfo2announcement}"
  +           includes="project-info.xml" extension=".txt"/>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- Create the text version of projectinfo                              -->
  +  <!-- =================================================================== -->
  +  <target name="projectinfo" depends="prepare" description="* Creates the text version of projectinfo">
  +    <copy file="${project-info}" tofile="${build.project-info}" filtering="on"/>
  +    <style basedir="./" destdir="./" style="${project-info2txt}"
  +           includes="project-info.xml" extension=".txt"/>
  +  </target>
  -  <!--    
  -  <target name="ABC" description="Abc" depends="init">          
  +  <!-- =================================================================== -->
  +  <!-- Creates the web site                                                -->
  +  <!-- =================================================================== -->
  +  <target name="site" depends="docs, javadocs"
  +      description="Generates the web site (for site maintainers only)">
  +    <mkdir dir="${site}"/>
  +    <copy todir="${site}" filtering="off">
  +      <fileset dir="${}">
  +      </fileset>
  +    </copy>
  +    <copy todir="${site}/apidocs" filtering="off">
  +      <fileset dir="${build.javadocs}"/>
  +    </copy>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- Set a variable if javadoc is already up-to-date.                    -->
  +  <!-- =================================================================== -->
  +  <target name="javadocs_check">
  +    <uptodate property="javadocs.notrequired" targetfile="${build.javadocs}/packages.html" >
  +      <srcfiles dir= "${build.src}" includes="**/*.java"/>
  +    </uptodate>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- If javadoc is already up-to-date, print a message saying so.        -->
  +  <!-- =================================================================== -->
  +  <target name="javadocs_done" if="javadocs.notrequired">
  +    <echo message="-------------------------------------------------------------"/>
  +    <echo message="Not rebuilding Javadocs, as they are up-to-date:"/>
  +    <echo message="  ${build.javadocs}/packages.html is more recent than"/>
  +    <echo message="  ${build.src}/**/*.java"/>
  +    <echo message="-------------------------------------------------------------"/>
  +  </target>
  +  <!-- =================================================================== -->
  +  <!-- Creates the API documentation                                       -->
  +  <!-- =================================================================== -->
  +  <target name="javadocs" depends="prepare-src, javadocs_check, javadocs_done"
  +      unless="javadocs.notrequired"
  +      description="* Generates the API documentation">
  +    <mkdir dir="${build.javadocs}"/>
  +    <javadoc packagenames="${packages}"
  +             sourcepath="${build.src}"
  +             destdir="${build.javadocs}"
  +             author="true"
  +             version="true"
  +             use="false"
  +             noindex="true"
  +             windowtitle="${Name} API"
  +             doctitle="${Name}"
  +             bottom="Copyright &#169; ${year} ${fullname} project. All Rights Reserved."
  +             stylesheetfile="${resource.dir}/javadoc.css">
  +      <classpath refid="classpath"/>
  +    </javadoc>
  -  -->

View raw message