What is essential?

by Robert Simmons Jr.

Cocoon binary distributions come with a "kitchen sink" policy. That is that they give you everything they have including the kitchen sink. Most of it is documentation and samples.

If you wish to create a new custom Cocoon based application that has just the Cocoon engine and your additions to it, you probably want to know what you can take out. First of all, copy your Cocoon distribution so you have a backup and a reference. Now we can start deleting things from our copy. The following structure represents a skeleton Cocoon install with no configured pages.

Note that in the manifest file there is a large list of the cocoon libs. This is necessary for deployment as a packaged war on many application servers. It's recommended you just append your manifest entries to the file given. Anything not on the list above you can feel free to trash. This structure will leave you will all of the capability of Cocoon but nothing being used. It's a point at which to start from.

In the sitemap file, you can delete all the pipelines and action sets. Some actions pertaining to particular samples, such as the database actions for the employee sample, can also be removed. Read the sitemap file carefully. Don't be too distressed if you delete something and need it later, you can always refer back to the original distribution to recreate it.

In the future there may be a skeletal distribution such as I have shown here. It is on the rather lengthy "to do" list for the cocoon developers. Until then, this should let you do it the old fashioned way.

MinimalCocoonConfiguration (last edited 2009-09-20 23:40:33 by localhost)