For the first time in a year and a half I want to use Cocoon from the
command line. I will be able to use the results in an environment
without Cocoon or Java and I won't have to generate every time the data
etc etc.
I use Sun's JDK 1.4.1_01, Cocoon 2.0.3, on Linux.
I've found at least of informations on dejanews and the mail list archives:
http://groups.google.com/groups?q=cocoon+command+line&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=jPAd8.9020%240C1.767012%40newsread1.prod.itd.earthlink.net&rnum=4
Uh, I should have looked at the code!
I answered my own simple question. For reference:
java -classpath . org.apache.cocoon.Main --help
-Mark
and:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=100439206023213&w=2
You can use Cocoon command line interface.
java org.apache.cocoon.Main -c<sourcepath> -d<resultpath> -w<tmppath> \
-l<logfilename> -uINFO -f<list.uris>
sourcepath : where your cocoon files are, with the sitemap and so on
resultpath : where tour HTML files go
tmppath : a directory for tmp files
logfilename : the log file
list.uris : a file containing the list of URI your want to build using
Cocoon
good, however WHERE should I give those command lines?
I've never compiled Cocoon by sources because in the early days of the
2.0beta it was a pain in *** ***, and I used to download the binary
.war. However this time I had to, because Main.class wasn't avaiable
anywhere on a binary distribution only.
$ sh build all
will create cocoon.jar but I can't get it working; at best I get a
$ java -classpath . org.apache.cocoon.Main
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/avalon/framework/CascadingException
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
etc etc etc..........
I tried to unzip the jar, to go directly inside and call Main.class from
its own dir, etc
what can I do...!
bye & thank you
as
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
- Re: Using Cocoon from the command Alessio Sangalli
- Re: Using Cocoon from the command Sylvain Wallez
- Re: Using Cocoon from the command Ugo Cei
- Re: Using Cocoon from the command Alessio Sangalli
- Re: Using Cocoon from the command Darren Petrie
- Re: Using Cocoon from the comman... Alessio Sangalli
- Re: Using Cocoon from the comman... Alessio Sangalli
- Re: Using Cocoon from the co... Darren Petrie
- Re: Using Cocoon from th... Alessio Sangalli
- Re: Using Cocoon from th... Bertrand Delacretaz
- Re: Using Cocoon from the co... Alessio Sangalli