This page describes the directory structure of Lenya under the build/ directory.
./build/lenya/
./build/lenya/src/
This subdirectory contains java code (org.apache.cocoon.* and org.apache.lenya.*).
[Why is this needed in the build tree? Can someone explain?]
./build/lenya/webapp/
This subdirectory contains two files
- global-sitemap.xmap
- sitemap.xmap
They are the "root" sitemaps that are used if no local ones are found in the publication or its templates.
[What is the difference between these two?]
It also contains the following sub-directories:
./build/lenya/webapp/jcr-repository
This directory will house the Java Content Repository if you choose to use it (it can replace the old file-based storage under your publication's content/ dir). See JcrConfiguration for details.
./build/lenya/webapp/lenya
This directory will house all global lenya code. This is where things become interesting, so there is an extra page for it: DirectoryStructureLenya2.0-HEAD-build-lenya-webapp-lenya
./build/lenya/webapp/WEB-INF
This is servlet-container housekeeping stuff. Among others, it contains:
- the
web.xml
file which has all the properties of the Lenya web application (the servlet) that your servlet container needs to know. - the logs/ subdirectory where your Lenya will dump all its little ailments and complaints. Important for debugging.
- the cocoon.xconf file, which your custom resource types are patched into using XPatch files (see 8http://lenya.apache.org/1_4/reference/resource-types.html]).
[I have not the faintest idea what the other things in this place are for. My guess is they don't pertain to MereMortals.]