HOW-TO: Configure Eclipse for Subversion using as the subversion host

May 23rd, 2006

Ok, so you are starting to get a good feel for RoR. You have configured Eclipse for RoR development and are now ready to start that killer project that will set you up for early retirement. It is time for good source code control management and these days that means subversion. Now, you can set up a dedicated server for subversion hosting, but if you are like many of us, you would rather not deal with all that. For startups, I highly recommend using as your source code repository. They have some free account options, but the paid accounts are well worth the services you get.

PROCEDURE 1: Configuring Eclipse for Subversion

If you have followed any of my other tutorials, you are now pretty familiar with adding in plugins to Eclipse. So I will skip most of the steps and just give you update url:

As before, in Eclipse, select Help–>Software Updates–>Find and Install…

Select “Search for new feature to install” and press next.

Click on new remote site

The other subclipse client to go with is: So far, I am prefering the polarian client. (and the rest of this tutorial is based on the polarian one).

PROCEDURE 2: Adding a project in Eclipse to your cvsdude module

You will need to use this procedure if you have created a project locally and now want upload it to share with other team members.

First thing you need to do is go is login to your cvsdude account and add a new subversion module. For the purposes of this tutorial, I will assume the name of the module is ‘HelloWorld’ (and that you have a Rails project of the same name. The name of the module and project should match).
Now, fire up eclipse and open up your Rails perspective. Right click on the project and select Team–>Share Project…

Select Subversion SVN and press Next >.

Select “Create a new repository location” and press Next->

If you go to your cvsdude account page, it will tell you the URL to enter for the module. The URL will be of the form:[account name]/[module]

Enter in your account login and password and press Next->

IMPORTANT for cvsdude: Select “Use single project layout”. This was the only option I was able to get working with cvsdude. Click finish. This will take you to the syncronization perspective. Check everything in and you are done!
PROCEDURE 3: Checking out a new project to your cvsdude module

You will need to use this procedure if you need to check out a project for the first time that one of the other team members has created.
This procedure is pretty easy. Fire up eclipse and open up the subversion perspective.

First thing we need to do is add the repostitory to Eclipse. Right click and select New–>Repository Location…

Enter in[account name]/[module]/[module] as the root URL. Note, because of the option that was selected when the repository was created, the module name appears twice in the root URL.

Press finish to add the repository.  Now, expand the repository.  Right click on ‘TRUNK’ to get the menu option to checkout the project.  Once you check out the project you can now go into your Rails perspective and see the project.

Entry Filed under: How-to,Software Development


6 Comments Add your own

Leave a Comment

You must be logged in to post a comment.

Trackback this post  |  Subscribe to the comments via RSS Feed


May 2006
« Apr   Jun »

Most Recent Posts