Wednesday, August 3, 2011

Eclipse and Subversion

Eclipse install seemed to go well. Now moving onto subversion- using the directions from the Klein Gould Blog and making notes here.

The new version is called Indigo. Some minor changes. I'll copy, paste and edit the directions here:

Done on my new iMac:

1. Install Eclipse

Installed the new (Indigo) Classic Eclipse 3.7 package from here.
The new beta version of Eclipse is Ganymede: http://www.eclipse.org/epp/ganymede.php

(I don't think I installed the IDE version: Eclipse IDE for Java Developers.)

Eclipse opens properly from quicksilver.

I have Java 1.6 preinstalled and I'm hoping that will work.

2. Install Subversive plugin

The relevant links are on this site:

http://www.eclipse.org/subversive/downloads.php

Here is some helpful info from that site:

"Subversive distribution consists of two parts - Subversive plug-in and Subversive SVN Connectors. Both parts are required in order to work with Subversive. Subversive plug-in is provided under the terms and conditions of the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available at http://www.eclipse.org/legal/epl-v10.html. Subversive SVN Connectors are external libraries with their own licenses, which are distributed from an external location at www.polarion.com. "

So Eclipse already knows about the Plug In update site and you just need to find and install it:

Go to eclipse.

Go to Help ->Install New Software

Click on the blue "Available Software Sites" Link and find the Subversive update site which should be this:

http://download.eclipse.org/technology/subversive/0.7/update-site/

Edit this to name it something like "Subversive" and click OK. Then make sure that it is checked on the list.

(Don't know if this is necessary, but I highlighted it and clicked "Reload.")

Now click OK to go back to the install dialogue. Select the Subversive link on the drop down box labeled "Work With."

Three choices should pop up. I'm installing all three, though I think the most important (maybe the only important) choice is the "Subversive SVN Team Provider Plugin." Click at least this option and click Next, Next, Accept Terms, then Finish.

Takes a few minutes to install. Requires restart. Upon restart, an SVN connections installation dialogue will pop up.

3. Install Subversion Connectors

More info from above site:

"In order to install Subversive you should install Subversive plug-in and at least one Subversive SVN connector, such as native (win32 only) JavaHL connector or pure Java SVNKit connector. Subversive plug-in and Subversive SVN Connectors are distributed from different update sites on different locations, so you should point two update sites in Eclipse update manager. "

Not sure which connector to install (though you definitely need the Connectors and a KIT), so I installed them all directly from the pop-up box. (Click next, next, agree, next or finish.) Agree to the security check.

Requires restart.

Could also paste a new link under the Help-> Install New Software box. The update site is

http://community.polarion.com/projects/subversive/download/eclipse/2.0/update-site/

which is located on the polarion site:

http://www.polarion.com/products/svn/subversive/download.php?utm_source=eclipse.org&utm_medium=link&utm_campaign=subversive

(This step should probably be done (or checked) anyways so that Eclipse knows where the website is to look for updates.)

4. Import SciKit from the repositories

In Eclipse, go to File -> Import.

Expand SVN and select "Projects from SVN"

Enter the URL for SciKit which is this:

http://scikit.googlecode.com/svn/


(The project homepage for SciKit is here: http://code.google.com/p/scikit/

You can go there and click on Source to find the URL. This is a public project, so you shouldn't need a password.)

Click on browse.

Highlight "trunk" and click finish.

Click Next and Finish until finished.

Some kind of message that a new master password was created. Created new questions and answers. Not sure what that was about?

5. Import Klein-Gould code from the repositories.

Pretty much the same thing:

Go to File -> Import.

Expand SVN and select "Projects from SVN"

Click on "Create a new repositiory location".

Enter the URL for the Klein Gould code which is this:

https://klein-gould.googlecode.com/svn

(The project homepage for SciKit is here: http://code.google.com/p/klein-gould/
You can go there and click on Source to find the URL. This is a NOT a public project, so you do need a password which you can get from this site under source and regenrate it if needed. You must be a member to access this.)

Expand "trunk" and only highlight "JavaSims" (not Kip's code.)

Click Next and Finish until finished.

You might want to fix things up a bit by clicking on Package Explorer Menu (the little white down arrow in the upper right corner of the Package Explorer) and clicking Package Presentation -> Heirerchical.

You can also change the keyboard bindings by clicking Eclipse -> Preferences -> General -> Keys and then changing Scheme to Emacs.

Now, everything should be perfect!

No comments:

Post a Comment