How to use CVS in Eclipse

Short Manual

This is a short Manual on how to use CVS in Eclipse. The purpose of this manual is to use a ssh connection that can be used with both eclipse and for instance tortoiseCVS or winCVS.

CVS/SSH settings for windows

It has been tested with Eclipse SDK 3.1.2 and putty on a Windows XP machine

cvs settings for xp and plink
  1. Create an Eclipse workspace and upload it to the repository. A further description can be found on http://fontysvenlo.org
  2. Start Eclipse and set up a workspace outside the sandbox. (=CVS folder)
  3. Next, in Eclipse select: > Windows > Preferences and check
    • + Team
    • + CVS
    • + Ext Connection Method
    and change the CVS_RSH to the PLINK.EXE in your putty folder.
    Delete all Parameters for plink.
  4. For the Connection type, choose :ext:, not :extssh:, because extssh is eclipse specific. If you use :extssh: you cannot manage the sandbox with another CVS client like the commandline, tortoiseCVS, winCVS or netbeans, jdeveloper etc. The reason for this is that the connection type is store in the file CVS/Root and thus attached to the sandbox.
  5. Start the PAGENT.EXE and add your RSA Private key.
  6. In Eclipse, select >File, >New, >Project, +CVS, +Checkout Project.
  7. Hostname is for instance fontysvenlo.org, set your repository path (you should know this!) and your Username. Since we are using an ssh-agent like PAGENT, we don't need to enter the password.
  8. After clicking Next select "Use an existing module" and navigate to your project. (Not just the workspace!)
  9. Press Finish and eclipse will checkout the workspace. You can now work with eclipse. Right-Click on a class and select >Team to see all the CVS functions like Commit, Update and Edit

CVS location

The settings for the CVS repository are not OS specific. They should work on all operating systems

cvs settings for
	edit and watch

Using watch/edit

Then select + Watch/Edit and set the options like this:

cvs settings for
	edit and watch

Note that these settings take only effect on a new checkout. They will not modify an existing sandbox.

Links:


I want to thank Simon Wegert for his effort to put this information together. He tested the stuff and collected the initial screenshots

If you have any comments, don't hesitate to email to Pieter van den Hombergh


Pieter van den Hombergh
Last modified: Wed Apr 12 12:29:14 CEST 2006