Java Package Statements and the CMS Filesystem

The CMS version control system does not store the directory from where a file was added. However, the CMS Support Module has the capability of parsing directory information from Java package statements.

For Java files, the CMS Support Module examines the package statement if one exists and creates the appropriate directory structure. For example, a Java source file might have the following package statement:

package examples.clock;

During a refresh operation, if the CMS Support Module finds such a package statement, the package structure (folder tree) is automatically created in the root of the mounted filesystem if it does not already exist. In this case, the CMS Support Module would create an examples directory under the CMS mount point and a clock subdirectory under examples.

In addition, Java source files (and their associated .form and .class files if they exist) appear in the appropriate folder within the Explorer. Once you have retrieved a physical copy of such a file - with either the Check Out or Get Latest Version commands -you can modify, compile and execute them.

Note Specify the same mount point as assumed in a CMS library files' package statements. If you use a different mount point, the package structure will be created in a new location - creating more than one instance of each directory and file.