27 April 2009

Using Eclipse with Subversion

I finally decided to set-up my previously-configured-solely-for-thesis laptop to include any software application projects that I may undertake. The first thing I did was to configure my favorite Java IDE, Eclipse, to work with a familiar version control system, Subversion. These are the steps I took.

1. Download Eclipse IDE: www.eclipse.org/downloads. In my case, I downloaded Eclipse Ganymede. The downloaded application is in zip file. All I did was to extract the contents on my desired location.

2. I also decided to set-up a local repository for my future projects. I chose Subversion (for more info, visit www.subversion.tigris.org). I downloaded and installed Subversion 1.4.5 into my laptop.

3. Once Subversion was installed, I created a new repository location.


4. I made sure that I have Subclipse plug-in. This is a plug-in for Eclipse that will enable it to use Subversion. It can be installed in two ways, first is by automatically downloading the plug-in using Eclipse’s Software Update (Help->Software Update) and searching through the database. Another method is to manually download the necessary Executable Jar Files and putting it on the plugins folder under eclipse. Luckily, after searching through my old files, I was able to retrieve the .jar files I needed. After doing any of the two methods, Eclipse needs to be restarted.

4b. For SpringSource Tool Suit (STS), Open STS Dashboard > Go to Extensions > Look for Subeclipse, check the checkbox and click install (If you don't see it, it implies it is already installed)


5. On Eclipse, I opened the SVN Repository Exploring Perspective(Window->Open Perspective->Other)


6. Two tabbed windows appeared(SVN Repository and SVN Annotate). On SVN Repository, right click->New->Repository Location-> typed file:///e:/svn/eclipse_backup on the text box->click Finish.


7. If done correctly, the SVN Repository will have a new entry as seen below.


 9. Right click on the new repo location and select "Checkout". This will give you a local copy that you can then commit to the repo.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.