forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/forrest-shbat forrest.build.xml
Date Sun, 20 Jul 2003 11:41:04 GMT
jefft       2003/07/20 04:41:03

  Modified:    src/resources/forrest-shbat forrest.build.xml
  Added:       src/resources/conf cli.xconf
  Log:
  Use new CLI
  
  Revision  Changes    Path
  1.1                  xml-forrest/src/resources/conf/cli.xconf
  
  Index: cli.xconf
  ===================================================================
  <?xml version="1.0"?>
  
  <!--+
      |  This is the Apache Cocoon command line configuration file. 
      |  Here you give the command line interface details of where
      |  to find various aspects of your Cocoon installation.
      |
      |  If you wish, you can also use this file to specify the URIs
      |  that you wish to generate.
      |
      |  The current configuration information in this file is for
      |  building the Cocoon documentation. Therefore, all links here 
      |  are relative to the build context dir, which, in the build.xml 
      |  file, is set to ${build.context} 
      |
      |  Options:
      |    verbose:            increase amount of information presented
      |                        to standard output (default: false)
      |    follow-links:       whether linked pages should also be 
      |                        generated (default: true)
      |    precompile-only:    precompile sitemaps and XSP pages, but 
      |                        do not generate any pages (default: false)
      |    confirm-extensions: check the mime type for the generated page
      |                        and adjust filename and links extensions
      |                        to match the mime type 
      |                        (e.g. text/html->.html)
      |
      | CVS: $Id: cli.xconf,v 1.1 2003/07/20 11:41:03 jefft Exp $
      +-->
      
  <cocoon verbose="true"  
          follow-links="true" 
          precompile-only="false" 
          confirm-extensions="false">
  
     <!--+
         | Broken link reporting options:
         |   Report into a text file, one link per line:
         |     <broken-links type="text" report="filename"/>
         |   Report into an XML file:
         |     <broken-links type="xml" report="filename"/>
         |   Ignore broken links (default):
         |     <broken-links type="none"/>
         |   When a page includes an error, should a page be generated?
         |     
         |   Two attributes to this node specify whether a page should
         |   be generated when an error occured. 'generate' specifies 
         |   whether a page should be generated (default: true) and
         |   extension specifies an extension that should be appended
         |   to the generated page's filename (default: none)
         |     <broken-links generate="true" extension=".error.txt"/>
         |
         +-->
     <broken-links type="xml" 
                   file="../brokenlinks.xml"
                   generate="false"
                   extension=".error"/>
     
     <!--+
         |  Load classes at startup. This is necessary for generating
         |  from sites that use SQL databases and JDBC.
         |  The <load-class> element can be repeated if multiple classes
         |  are needed.
         +-->
     <!--
     <load-class>org.firebirdsql.jdbc.Driver</load-class>
     -->
  
     <!--+
         |
         +-->
     <logging log-kit="WEB-INF/logkit.xconf" logger="cli" level="ERROR" />
  
     <!--+
         |  The context directory is usually the webapp directory
         |  containing the sitemap.xmap file.
         |
         |  The config file is the cocoon.xconf file.
         |
         |  The work directory is used by Cocoon to store temporary
         |  files and cache files.
         |  
         |  The destination directory is where generated pages will
         |  be written (assuming the 'simple' mapper is used)
         +-->
     <context-dir>.</context-dir>
     <config-file>WEB-INF/cocoon.xconf</config-file>
     <work-dir>../temp/docs</work-dir>
     <!-- Overridden in forrest.build.xml 
     <dest-dir>../docs</dest-dir>
     -->
  
     <!--+
         | Specifies the filename to be appended to URIs that
         | refer to a directory (i.e. end with a forward slash).
         +-->
     <default-filename>index.html</default-filename>
  
     <!--+
         |  Specifies a user agent string to the sitemap when
         |  generating the site.
         +-->
     <!--
     <user-agent>xxx</user-agent>
     -->
  
     <!--+
         |  Specifies an accept string to the sitemap when generating
         |  the site.
         +-->
     <accept>*/*</accept>
     
     <!--+
         |  Specifies the URIs that should be generated (using <uri>
         |  elements, and (if necessary) what should be done with the
         |  generated pages.
         |
         |  The old behaviour - appends uri to the specified destination
         |  directory (as specified in <dest-dir>):
         |
         |   <uri>documents/index.html</uri>
         |
         |  Append: append the generated page's URI to the end of the 
         |  source URI:
         |
         |   <uri type="append" src-prefix="documents/" src="index.html"
         |   dest="build/dest/"/>
         |
         |  Replace: Completely ignore the generated page's URI - just 
         |  use the destination URI:
         |
         |   <uri type="replace" src-prefix="documents/" src="index.html" 
         |   dest="build/dest/docs.html"/>
         |
         |  Insert: Insert generated page's URI into the destination 
         |  URI at the point marked with a * (example uses fictional 
         |  zip protocol)
         |
         |   <uri type="insert" src-prefix="documents/" src="index.html" 
         |   dest="zip://*.zip/page.html"/>
         |
         +-->
     <uri src="favicon.ico"/>
  
     <!--+
         |  File containing URIs (plain text, one per
         |  line).
         +-->
     <!--
     <uri-file></uri-file>
     -->
     
  </cocoon>
  
  
  
  
  1.75      +15 -14    xml-forrest/src/resources/forrest-shbat/forrest.build.xml
  
  Index: forrest.build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/forrest-shbat/forrest.build.xml,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- forrest.build.xml	10 Jul 2003 12:01:19 -0000	1.74
  +++ forrest.build.xml	20 Jul 2003 11:41:03 -0000	1.75
  @@ -575,6 +575,7 @@
       <mkdir dir="${project.work-dir}"/>
   
       <parallel>
  +      <!--
         <java classname="org.apache.cocoon.Main"
           fork="true"
           maxmemory="${forrest.maxmemory}"
  @@ -584,32 +585,32 @@
           <jvmarg line="${forrest.jvmargs}"/>
           <jvmarg
             value="-Djava.endorsed.dirs=${forrest.home}/lib/endorsed${path.separator}${java.endorsed.dirs}"/>
  -        <arg value="-c${project.ctxt-dir}"/>   <!-- input to the process -->
  -        <arg value="-d${project.site-dir}"/>   <!-- output to be put -->
  -        <arg value="-w${project.work-dir}"/>   <!-- temp dir to use for e.g. cache
-->
  -        <arg value="-u${project.debuglevel}"/> <!-- threshold for log messages
-->
  -        <arg value="-C${project.ctxt-dir}/WEB-INF/cocoon.xconf"/>      <!-- cocoon.xconf
file to use -->
  -        <arg value="-b${project.brokenlinkfile}"/>  <!-- output list of broken
links -->
  -        <arg value="-k${project.ctxt-dir}/WEB-INF/logkit.xconf"/>  <!-- output
list of broken links -->
  -        <arg value="${project.start-uri}"/>              <!-- starting page -->
  -        <arg value="-V" />                          <!-- be verbose -->
  +        <arg value="-c${project.ctxt-dir}"/>   <!- input to the process ->
  +        <arg value="-d${project.site-dir}"/>   <!- output to be put ->
  +        <arg value="-w${project.work-dir}"/>   <!- temp dir to use for e.g. cache
->
  +        <arg value="-u${project.debuglevel}"/> <!- threshold for log messages
->
  +        <arg value="-C${project.ctxt-dir}/WEB-INF/cocoon.xconf"/>      <!- cocoon.xconf
file to use ->
  +        <arg value="-b${project.brokenlinkfile}"/>  <!- output list of broken
links ->
  +        <arg value="-k${project.ctxt-dir}/WEB-INF/logkit.xconf"/>  <!- output
list of broken links ->
  +        <arg value="${project.start-uri}"/>              <!- starting page ->
  +        <arg value="-V" />                          <!- be verbose ->
         </java>
  +      -->
   
  -      <!--
         <java classname="org.apache.cocoon.Main"
           fork="true"
           dir="${project.ctxt-dir}"
           failonerror="true"
           maxmemory="${forrest.maxmemory}">
           <jvmarg value="-Djava.endorsed.dirs=${forrest.home}/lib/endorsed${path.separator}${java.endorsed.dirs}"/>
  -        <arg value="-u${project.debuglevel}"/>
  -        <arg value="-xcli.xconf"/>
  +        <arg value="--logLevel=${project.debuglevel}"/>
  +        <arg value="--destDir=${project.site-dir}"/>
  +        <arg value="--xconf=WEB-INF/cli.xconf"/>
           <arg value="index.html"/>
           <classpath>
             <path refid="forrest.cp"/>
           </classpath>
         </java> 
  -      -->
   
   
         <sequential>
  
  
  

Mime
View raw message