David Swearingen wrote:

I'm trying to get Cocoon CLI to work. I've scoured all the documents on this, but can't figure out how cli knows where to find my sitemap. I have cocoon up and running just fine under Tomcat as a web application.
What I need is a very basic command line -- which commands are REQUIRED to simply process a request through the sitemap and output to a file? I'd rather just put all the required parameters on the command line rather than have to build an xconf file. It seems to me that the minimum parameters needed if I DON'T reference an xconf file are:
-c contextdir (unless I use default)
-d destination

You are probably right. (But it is some time since I have used the CLI with command line parameters).


Part of my confusion in part stems from the fact that I have my sitemap under my Tomcat folder (c:\jakarta-tomcat-4.1.30) but the docs say to run cocoon.bat residing in my cocoon install directory, c:\cocoon-2.1.4. So, should my 'contextdir' be under the jakarta path or the cocoon path? What is the purpose of the contextdir? That's not explained in the docs.

The context directory is the directory that contains your Cocoon webapp, the one with the WEB-INF folder in it.


From within your Cocoon distribution, you should probably be able to do:

cocoon cli -c c:\jakarta-tomcat-4.1.30\webapps\cocoon -d c:\mysite\ index.html

The index.html file will be generated, and it will crawl pages linked to from there (unless you specify -f false, I think).

Finally, it's not clear to me what the difference is between -x and -C.

-x says use a cli.xconf file to configure the command line. -C points to the configuration file for Cocoon, cocoon.xconf, which can be found in WEB-INF.


Hope that is some help - all done from memory, I'm afraid.

Upayavira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to