Chapter 5 Source Code
Separate the directory hierarchy containing the source codes from the one containing the deployable application.
You can place the source code of an application in a desired actual directory and file hierarchy. The following components exist under a top level project source directory.
- docs/ – This refers to the compiled application documentation for the development team.
- src/ – This component refers to the Java source files that generate the servlets, beans, and other unique Java classes to the application.
- web/ – This refers to the static content of the web site which the clients can access.
- web/WEB-INF/ – This component refers to the special configuration files required for the application.
The following lists the temporary additional directories:
- build/ – This directory contains an exact image of the files in the web application archive once you execute a default build (ant).
- dist/ – Executing the ant dist targe creates this directory. This directory creates an exact image of the binary distribution for your web application.
It is not recommended that you store a copy of the required packages in the source control archives of the applications.


