Setting CVS repository defaults

When you use a CVS repository during team development, you might want to use the following setup to ensure that the CVS versioning support ignores the project's build output folder:

  1. Create a file called .cvsignore in your project's WebContent/WEB-INF folder.
  2. In this file, add a line with the name of the build output folder (for example, classes).

    Currently, you have the option of creating this file automatically (as a feature) when using the New Dynamic Web Project wizard.

    When you synchronize with a CVS team stream, the output folder will be ignored.

  3. In addition, you should turn off the Prune empty directories option. Select Windows > Preferences, switch to the Team > CVS properties page, and ensure that the Prune empty directories check box is not checked.

    If this option is enabled and your Web project's source directory is empty, it will be deleted when the project is added to your workspace from a CVS repository, causing a Java™ build error.