Stuff that Works

Life is full of trial and error, and so is programming. In the tradition of Socrates I'll be the first to admit how much I don't know. As time goes on, I do pick up a few nuggets here and there and I intend to share what I can through this weblog. The topics are as diverse as my interests, but don't be surprised to find some mention of enterprise software development, photography, running and politics.

Saturday, September 17, 2005

Using Sourceforge CVS from Eclipse

I'm fairly new to CVS, and only just started developing on Sourceforge. It took a while to pull together this info, but I finally figured out how to work with Sourceforge CVS from Eclipse. Here's how.

How to Set Up Eclipse 3.1 to Connect to Sourceforge CVS

Sourceforge only allows checkins over secure connections, which means that you need to be a project admin or an authorized developer to do this. Apparently this works using the "SSH2" connection method ...

Start by opening your Eclipse Preferences and navigating to Team -> CVS -> SSH2 Connection Method. I specified the following settings:
  • SSH2: C:\Documents and Settings\Percy Wegmann\ssh (update this as you'd like for your environment)
  • Private Keys: id_dsa,id_rsa (this was the default value)
Go ahead and save your preferences.

How to Connect to a Sourceforge CVS Repository

Start by opening the CVS Repository Browser view. In here, right click on the empty space of the CVS Repositories window and select New -> Repository Location ... Specify these parameters:
  • Host: cvs.sourceforge.net
  • Repository Path: /cvsroot/
  • User:
  • Password:
  • Connection Type: extssh (NOT ext!)
That's it.

How to Import a Project from Eclipse into CVS

From the Package Explorer view in the Java Perspective, just right-click on the project you'd like to import and select Team -> Share Project ... and then just follow the wizard. It's much easier than from the command-line!

0 Comments:

Post a Comment

<< Home