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
- Create an Eclipse workspace and upload it to the repository. A further description can be found on http://fontysvenlo.org
- Start Eclipse and set up a workspace outside the sandbox. (=CVS folder)
- Next, in Eclipse select: > Windows > Preferences and check
- + Team
- + CVS
- + Ext Connection Method
PLINK.EXEin your putty folder.
Delete all Parameters for plink. - 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 fileCVS/Rootand thus attached to the sandbox. - Start the PAGENT.EXE and add your RSA Private key.
- In Eclipse, select >File, >New, >Project, +CVS, +Checkout Project.
- 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.
- After clicking Next select "Use an existing module" and navigate to your project. (Not just the workspace!)
- 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
Using watch/edit
Then select + Watch/Edit and set the options like this:
Note that these settings take only effect on a new checkout. They will not modify an existing sandbox.
Links:
- The fontys venlo.org homepage
- Eclipse SDK
- tortoiseCVS
- Putty: Enter putty in gooooogle.com and use the second link.
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