cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Noels <>
Subject Re: Save output files
Date Mon, 15 Jul 2002 10:00:42 GMT
Thomas Balthazar wrote:

> and i want to save the output (the html file) instead of simply viewing
> it with my browser.
> Can you please give me some clues.

Cocoon offers a wonderful, if less-than-optimal documented command-line 
interface that crawls itself given a starting point URL. You can easily 
invoke this commandline interface using Ant or from a little batch file. 
If you want an example of this, check the 'build docs' target that comes 
with Cocoon, or have a look at Forrest which does the same thing.

I don't immediately recall some location documenting all of its 
commandline option, as always there is the source code as a reference:*checkout*/xml-cocoon2/src/java/org/apache/cocoon/

An example Ant target which invokes this behaviour, copied from Forrest 

     <java classname="org.apache.cocoon.Main" fork="true" 
dir="${}" failonerror="true">
       <arg value="-c."/>
       <arg value="-d../docs"/>
       <arg value="-w../work"/>
       <arg value="-l../work/cocoon.log"/>
       <arg value="-u${}"/>
       <arg value="index.html"/>
         <path refid="classpath"/>
         <fileset dir="${build.dir}">
           <include name="*.jar"/>
         <fileset dir="${tools.dir}">
           <include name="*/lib/*.jar"/>
         <pathelement location="${tools.jar}"/>
         <pathelement location="${build.context}/WEB-INF/classes"/>

or check


Steven Noels                  
Outerthought - Open Source, Java & XML Competence Support Center            

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message