Sunday, June 28, 2009

Using svn + ssh with subclipse in eclipse

1.
get eclipse from:
http://www.eclipse.org/downloads/
(I used "Eclipse IDE for Java Developers (92MB)" of Galileo Packages (based on Eclipse 3.5) )

2.
Run eclipse, and select the menu "Help -> Install New Software"
Add this upgrade site:
http://subclipse.tigris.org/update_1.4.x
You can refer to : http://subclipse.tigris.org/
(You can directly use svn+ssh with subclipse 1.4, because the default JavaHL adapter doesn't support SSH and public key authentication. So we need to use another JavaHL adapter.)

3.
Choose the menu "Eclipse -> Preferences", then go to "Team -> SVN", and find the "SVN Interface" pulldown, and choose "SVNKit(Pure Java) SVNKit v1.2.3.5521" rather than "JavaHL(JNI)1.6.3(r38063)"



Finally, you can use svn+ssh with subclipse of eclipse.

PS: if you use eclipse under Linux, svn+ssh can work well after you install subclipse, that is, no need to configure Step 3 mentioned above.

No comments: