Using CVS With Web Modules
See Also
This topic describes how to do the following:
- Create a new web module that will be kept in a CVS repository
- Mount an existing web module that is stored in a CVS repository
When you use CVS from the IDE, the IDE versions all the files and directories
that are in and under the web module's root directory including WEB-INF,
files in the WEB-INF/classes directory, files in the WEB-INF/lib
directory, web.xml, and the server-specific hidden files.
Creating a New Web Module Under CVS
To create a web module under version control, you must mount your working directory
as a CVS filesystem, create a package for the web module, then mount the package
as a CVS filesystem, as shown in the following steps.
To mount your working directory as a CVS filesystem:
- Choose Versioning
Mount Version Control from the main menu.
- In the Version Control System Profile combo box, select CVS.
- Type or browse to the working directory.
- Leave the Relative Mount Point blank.
- Select the CVS Server Type.
- Type the CVS Server Name, Port, and User Name.
- Type or browse to the Repository Path.
- Click Finish. The CVS mounted filesystem appears in the Filesystems window.
- In the Filesystems window, right-click the CVS mounted filesystem and choose
CVS
Checkout from the contextual menu.
To create a package:
- Right-click the CVS mounted filesystem and choose New
Java Package from the contextual menu.
- Enter a package name and click Finish.
To mount the package as a CVS filesystem:
- In the Filesystems window, right-click the package, choose CVS
Add from the contextual menu, and click OK.
- Right-click the package and choose
CVS
Commit from the contextual menu, enter a Reason,
and click OK.
- Choose Versioning
Mount Version Control from the main menu.
- In the Version Control System Profile combo box, select CVS.
- Type or browse to the desired working directory.
- In the Relative Mount Point field, type or browse to the package.
- Type or browse to the CVS Repository.
- Click Finish. The CVS mounted filesystem for the directory appears in the
Filesystems window.
- Convert the directory to a web module.
Use the CVS mounted filesystem for the package to perform CVS actions on the
package.
Mounting a Web Application That is Under Version Control
To mount a web module that is under version control, you must mount your working
directory as a CVS filesystem, check out the web application files, and mount
the web application's directory as a CVS filesystem, as shown in the following
steps.
To mount your working directory as a CVS filesystem:
- Choose Versioning
Mount Version Control from the main menu.
- Select CVS from the Version Control System Profile combo box.
- Type or browse to the desired working directory.
- Leave the Relative Mount Point blank.
- Select the CVS Server Type.
- Type the CVS Server Name and CVS Server User Name.
- Type or browse to the CVS Repository.
- Click Finish. The CVS mounted filesystem appears in the Filesystems window.
- Check out the required directories, including the web module's directory
by right-clicking the CVS mounted filesystem and choosing CVS
Checkout from the contextual menu.
To mount the web module's directory as a CVS filesystem:
- Choose Versioning
Mount Version Control from the main menu.
- In the Version Control System Profile combo box, select CVS.
- Type or browse to the working directory.
- In the Relative Mount Point field, type or browse to the web module's directory.
- Type or browse to the CVS Repository.
- Click Finish. The CVS mounted filesystem for the directory appears in the
Filesystems window.
Use the CVS mounted filesystem for the web module's directory to perform CVS
actions on the web module.
Legal Notices