Logo of the Augustana Faculty of the University of Alberta

COMPUTING SCIENCE 320
Software Engineering II


Using Subversion in Eclipse



Configuring Eclipse 3.x to install Subclipse

Subclipse is an Eclipse plug-in that allows you to access a Subversion repository using a Subversion (SVN) client from within Eclipse.

To install it, select:

   Help
      Software Updates
         Find and Install
            • Search for new features to install
               [Next]
            [New Remote Site]
               Name: Subclipse
               URL:  http://subclipse.tigris.org/update_1.2.x
               [OK]
            [Finish]

In the subsequent Search Results window, select Subclipse as the feature to install, accept the license agreement on the next page, then click [Finish].

In the Feature Verification window, click [Install]. Let it restart your Eclipse environment.

Using SVN in Eclipse

To connect to a remote Subversion repository within Eclipse, select:

   Window
      Open Perspective
         Other
            SVN Repository Exploring

You should see a perspective that has an SVN Repository window on the left side and an SVN Resource History at the bottom of the right-hand side of the Eclipse window.

Find (by mouse hovering on the rightmost button under the "SVN Repository" heading) and then click the "Add SVN Repository" button. Alternatively, you could right-click in the "SVN Repository" view to open a context menu, then select New - Repository Location. Enter the following as a new repository location:

   svn+ssh://berio.augustana.ca/usr/local/courses/csc320

You should see a representation of the repository for our project, including 'branches', 'tags', and 'trunk' directories.

Checkout the project

Highlight the 'trunk' directory and choose "Checkout" from the context menu (raised by a right click). Install the contents as a new project, naming it "ToolRental", for example.

Update/Commit/Add

To perform Subversion activities such as update, commit, add, and the like, right-click on the name of the item to be updated, committed, or added and select the "Team" submenu. Choose the appropriate option.

Note that when you add a new package, class, or interface to your Eclipse project, Eclipse puts a question mark in the icon prior to the name of that package, class, or interface, indicating that it has not yet been added to the Subversion repository. Use the "Team" submenu of the context menu to "Add" the item to the repository.

Copyright © 2006, 2008 Jonathan Mohr