4.7.1. Bundle Directory Layout
The structure of a bundle is simple but flexible. The following shows the directory layout of a bundle.
BUNDLE_NAME/
BUNDLE_VERSION/
bundle/
actions/
info
shared/
PLATFORM/
Some notes on this layout:
- The bundle directory contains an info file describing the bundle.
- The bundle directory can be used for things like configuration templates and documentation.
- The actions directory contains bundle hooks like 'load' and 'unload' for loadable bundles and 'start' and 'stop' for executable bundles.
- The shared directory contains all files that are common across platforms. Typical subdirectories of shared include bin, lib, and war.
- The PLATFORM directory contains all files that are specific to a platform. The value of PLATFORM varies based on where BundleWorks is running. Some examples of platforms are 'macosx-ppc', 'solaris-x86', and 'linux-x64'. Note that a bundle can contain multiple PLATFORM directories. Typical subdirectories of PLATFORM include bin and lib.