Sunday, February 15, 2009

SVN+SSH with Subclipse

Now that I've got Subversion working like a charm on my server, I'd like to share my experience with setting up Subclipse on my Windows 7 desktop. Although most of my dev work is done on my Asus netbook running Ubuntu 8.10, I occasionally like to take advantage of my 28" widescreen attached to my desktop. I installed TortoiseSVN, available here. Then, I installed subclipse, available here. Make sure you download the appropriate version of subclipse for your version of eclipse. Once that's installed, you need to do a couple things:

1. Set the following environment variable (by right-clicking on Computer, Properties, Advanced system settings, Environment Variables, New):-

Variable name: SVN_SSH
Variable value: C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe

2. I then configured SVN (in Eclipse, click on Window, Preferences, Team, SVN, SVN Interface):-
to use SVNKit(Pure Java) SVNKit v1.2.1.5297.

3. I restarted Eclipse.

Upon restarting everything worked flawlessly. To create a new project by SVN+SSH using a repository on my server, press Ctrl-N, click on SVN, and "Checkout Projects from SVN". I entered the URL to my repository, and had a working copy on my local machine soon after.

1 comment:

  1. Thanks for the tutorial. This will be helpful when I get subclipse going on my desktop.

    ReplyDelete