User Tools

Site Tools


project:svn-eclipse

Subversion Repository Access from Eclipse

Another way to access the Subversion repository on multicore.cs.purdue.edu from a Windows machine is using the Subclipse plugin for Eclipse.

Install Eclipse

Download Eclipse (or visit the Eclipse downloads page for more choices) to your desktop and unzip it into the directory where you would like it installed. Run Eclipse by double-clicking on eclipse.exe before continuing.

Before moving on, make sure that you have already followed the instructions for Subversion repository access from Windows and can successfully browse the repository using TortoiseSVN.

TortoiseSVN Configuration

Right click on the desktop to bring up the options menu. Click TortoiseSVN → Settings Click on the Edit button for the Subversion configuration file.

Find [tunnels] and make sure it isn’t commented out. Below it add the line: ssh = C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe or whatever your path to TortoisePlink.exe is.

Install Subclipse

To install Subclipse, open Eclipse and then follow the instructions on this Subclipse installation guide. The instructions will vary slightly because Subclipse has more updates than when the guide was written.

Do not try to install the optional Integrations subtree unless you know what you are doing and have the necessary prerequisites.

Repository Access

Inside Eclipse, click Window → Show View → Other → SVN → SVN Repository. Then, Click OK.

In the new view, add a Repository with the url:

svn+ssh://session/path

where session is the session you saved in PuTTY (Multicore in the example). For our repository, path can be left empty.

All done. Try to browse the repository in Eclipse or check it out.

Checking Out Projects

To check out a project from the SVN repository, go the the SVN Repository Exploring (Window → Show View → Other → SVN → SVN Repository), select the Multicore repository, select the project you would like to check out, right-click and then choose Checkout…. Select Check out as a project configured using the New Project Wizard if you want to choose a special location for the project or select Check out as a project in the workspace if you want to keep the project in your default workspace. Click Finish, and the project should appear in the Package Explorer.

New Projects

If you are creating a new project, create the project normally inside of Eclipse. Then, right click on the project in the Package Explorer and choose Team → Share Project…. Choose SVN and click Next >. Select Use existing repository location:, highlight the Multicore repository, and click Next >. Finally, pick the folder name (the Use project name as folder name option should be fine), and click Finish. The rest should be self-explanatory.

This guide based heavily on information at http://blog.novembercamel.com/?p=16 (which seems not to be up, but Google has it cached for the time being).

project/svn-eclipse.txt · Last modified: 2010/05/11 14:44 by jtk