Subversion (SVN) with Eclipse

Subversion (SVN) is a version control system. It is used to keep track of all work and all changes in a set of files, and allows several developers (potentially widely separated in space and/or time) to collaborate. Its goal was to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).

How to use Subversion with Eclipse

  • Subclipse is a project to add Subversion support to the Eclipse IDE. We'll use Eclipse's update manager to add Subclipse to our Eclipse IDE.
  • From the Help menu in Eclipse, choose Software Updates > Find and Install to open the update manager.
  • Be sure that Search for new features to install is selected, then click Next to continue. Eclipse displays the next update manager panel.
  • Since we install a specific feature, un-check the existing sites, then click New Remote Site to display the New Update Site dialog. We'll use this to add the Subclipse update site to the list.
  • Click Finish in the update manager window to begin searching for new features. In this case, the new feature we're after is Subclipse. After a few moments, the update manager's search is complete, and it displays the search results.
  • Check Subclipse, then click Next to view the feature's license terms. Accept the terms, then click Next to review the features you've chosen to install. Click Finish to download and install Subclipse.
  • The update manager downloads the Subversion components. Before installing anything, Eclipse will warn you that the features aren't digitally signed. This is your last chance to cancel the installation. Click Install All to continue the installation.
  • Once Subversion has been installed, Eclipse warns you that you might need to restart the IDE to activate the new features. Restart Eclipse, just in case. When Eclipse comes back up, Subclipse is installed and ready to go.

Test Subeclipse

  • It's always nice to test a new feature once you've finished the installation; we'll try checking out a copy of Subclipse from their Subversion repository to make sure it's been properly installed.
  • From Eclipse's File menu, choose Import to display the import manager. Choose Checkout Projects from SVN, then click Next.
  • On the Select/Create Location panel , we need to create a new location (since we don't have any configured yet), so click Next to continue.
  • In the next section, add the repository URL (http://subclipse.tigris.org/svn/subclipse/) to the Url field, then click Next. After a moment, Eclipse prompts you for user ID and password. If you don't have an account on the Subclipse site, enter guest for the user ID and leave the password blank, check the Save Password box, and click OK.
  • Eclipse displays the folders in the Subclipse repository. Expand the trunk and choose the subclipse folder, then click Next.
  • Here you can determine how you are going to check out your own copy of the Subclipse project's source code. Select the “check out as a project in the workspace” option and leave the project name as subeclipse. Then, then click Finish to start checking out the project.
Last modified: 2014/04/12 22:26
*