Eclipse: Adding a project to source control

You add resources to source control so that you can track changes and share your work with others.

About this task

In this topic, you will add your Eclipse project to source control in the tutorial VOB.

To add a project to source control:

Procedure

  1. Connect to the VersionVault server, if you are not already connected.
    Expand the My Views node in the VersionVault Navigator, right-click on the view called yourname_tut_view and click Connect. In the WAN dialog box, fill in the connection details, and click OK.
    Note: You can also select the view and click the connect to ClearCase icon (Connect to VersionVault Server) button in the toolbar or you can select Connect from the VersionVault menu. In addition, if you are not connected to a VersionVault server and you perform an action that requires such a connection, the WAN dialog box appears automatically.
  2. In the VersionVault Navigator, navigate to the docs folder in your project folder.
  3. In the VersionVault Details view, right-click the notes.txt file and click Add to Source Control.
  4. In the Add to Source Control dialog box, click the Show Details button (if it is available), type a comment in the Comment field, and click OK.

    The notes.txt file and its parent directories, docs and yourname_tutorial, are added to source control. (A file cannot be added to source control unless the directories above it are also under source control. In this case, only the parent directory is added to source control.)

  5. In the VersionVault Details view, right-click the readme.txt file and click Add to Source Control.
  6. In the Add to Source Control dialog box, click the Show Details button (if it is available), type a comment in the Comment field, and click OK.

Results

Your tutorial folder, the docs directory, and the two text files are now under source control. Note that the value of the State field in the VersionVault Details view is now Loaded instead of View Private.