Using CVS With Web Modules

See Also

This topic describes how to do the following:

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:

  1. Choose Versioning and choose Mount Version Control from the main menu.
  2. In the Version Control System Profile combo box, select CVS.
  3. Type or browse to the working directory.
  4. Leave the Relative Mount Point blank.
  5. Select the CVS Server Type.
  6. Type the CVS Server Name, Port, and User Name.
  7. Type or browse to the Repository Path.
  8. Click Finish. The CVS mounted filesystem appears in the Filesystems window.
  9. In the Filesystems window, right-click the CVS mounted filesystem and choose CVS and choose Checkout from the contextual menu.

To create a package:

  1. Right-click the CVS mounted filesystem and choose New and choose Java Package from the contextual menu.
  2. Enter a package name and click Finish.

To mount the package as a CVS filesystem:

  1. In the Filesystems window, right-click the package, choose CVS and choose Add from the contextual menu, and click OK.
  2. Right-click the package and choose CVS and choose Commit from the contextual menu, enter a Reason, and click OK.
  3. Choose Versioning and choose Mount Version Control from the main menu.
  4. In the Version Control System Profile combo box, select CVS.
  5. Type or browse to the desired working directory.
  6. In the Relative Mount Point field, type or browse to the package.
  7. Type or browse to the CVS Repository.
  8. Click Finish. The CVS mounted filesystem for the directory appears in the Filesystems window.
  9. 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:

  1. Choose Versioning and choose Mount Version Control from the main menu.
  2. Select CVS from the Version Control System Profile combo box.
  3. Type or browse to the desired working directory.
  4. Leave the Relative Mount Point blank.
  5. Select the CVS Server Type.
  6. Type the CVS Server Name and CVS Server User Name.
  7. Type or browse to the CVS Repository.
  8. Click Finish. The CVS mounted filesystem appears in the Filesystems window.
  9. Check out the required directories, including the web module's directory by right-clicking the CVS mounted filesystem and choosing CVS and choose Checkout from the contextual menu.

To mount the web module's directory as a CVS filesystem:

  1. Choose Versioning and choose Mount Version Control from the main menu.
  2. In the Version Control System Profile combo box, select CVS.
  3. Type or browse to the working directory.
  4. In the Relative Mount Point field, type or browse to the web module's directory.
  5. Type or browse to the CVS Repository.
  6. 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.

See Also
Where to Put Web Module Files
About Creating Web Modules

Legal Notices