wtp project naming conventions
This document summarizes the WTP project naming conventions for plug-ins, packages, and CVS modules.
|Plug-ins and Packages|
One of the main goals of this naming convention is to make it easy to find the component that any class belongs to. This is achieved by adopting the convention of putting the component name in the package or plug-in name, preferably as the fourth component.
The Eclipse Platform Naming Conventions state that following org.eclipse, the third component of the package or plug-in name should be the subproject name, which in our case is wst or jst. The fourth component is the component name, e.g. xml or jsp, unless the code is non-API which is signalled by the use of one of the following reserved words:
If one of the reserved works appears as the fourth part of the name, then the fifth part should be the component name.
In the WTP project we are relaxing this convention so that the reserved word may appear after the fourth component. For example, org.eclipse.wst.xml.tests indicates test cases that are used for the xml component of the wst subproject. The prefered usage is to put the reserved names in the fifth position, leaving the fourth position for the component name.
Consider the following examples for the server component of the wst subproject:
The WTP project CVS repository is organized as follows. The top level folder is the subproject name, i.e. wst or jst. The second level contains a components folders. The components folder contains one folder per component, e.g. xml or jsp. Each component folder contains the following folders:
Any of the features, plugins, and tests folders may be absent if they do not apply to the component.
For example, the server component of the wst subproject is organized as follows: