Differences between revisions 9 and 10
Revision 9 as of 2007-03-14 14:04:02
Size: 2792
Editor: 194
Comment:
Revision 10 as of 2008-02-21 07:00:23
Size: 2824
Editor: nat7
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[TableOfContents]] <<TableOfContents>>
Line 4: Line 4:
Get the ["SVNKit"] source code with the svn command line client Get the [[SVNKit]] source code with the svn command line client
Line 21: Line 21:
Depending on how you are going to use ["SVNKit"] follow one of the how-to sections Depending on how you are going to use [[SVNKit]] follow one of the how-to sections
Line 25: Line 25:
Use [http://ant.apache.org Ant] to build ["SVNKit"] binaries: Use [[http://ant.apache.org|Ant]] to build [[SVNKit]] binaries:
Line 33: Line 33:
Set an {{{ECLIPSE_HOME}}} environment variable (should point to [http://www.eclipse.org Eclipse] 3.2.2 (or newer) home directory) Set an {{{ECLIPSE_HOME}}} environment variable (should point to [[http://www.eclipse.org|Eclipse]] 3.2.2 (or newer) home directory)
Line 38: Line 38:
Use [http://ant.apache.org Ant] to build ["SVNKit"] binaries: Use [[http://ant.apache.org|Ant]] to build [[SVNKit]] binaries:
Line 43: Line 43:
{{{svnkit/build/eclipse}}} directory will contain [http://www.eclipse.org Eclipse] ["SVNKit"] plugin, feature and update site files. {{{svnkit/build/eclipse}}} directory will contain [[http://www.eclipse.org|Eclipse]] [[SVNKit]] plugin, feature and update site files.
Line 45: Line 45:
To make [http://www.eclipse.org Eclipse] use the plugin you've just built, copy all files from {{{svnkit/build/eclipse/plugins}}} and {{{svnkit/build/eclipse/features}}} to corresponding [http://www.eclipse.org Eclipse] directories and restart [http://www.eclipse.org Eclipse]: To make [[http://www.eclipse.org|Eclipse]] use the plugin you've just built, copy all files from {{{svnkit/build/eclipse/plugins}}} and {{{svnkit/build/eclipse/features}}} to corresponding [[http://www.eclipse.org|Eclipse]] directories and restart [[http://www.eclipse.org|Eclipse]]:
Line 50: Line 50:
Or use "Local Update Site" at {{{svnkit/build/eclipse/site}}} directory to install an ["SVNKit"] extension plugin for [http://subclipse.tigris.org Subclipse]. Or use "Local Update Site" at {{{svnkit/build/eclipse/site}}} directory to install an [[SVNKit]] extension plugin for [[http://subclipse.tigris.org|Subclipse]].
Line 53: Line 53:
Since version 0.9.33 [http://subclipse.tigris.org Subclipse] already comes with ["SVNKit"] embedded. All you need is to select ["SVNKit"] on the SVN preference page (in [http://www.eclipse.org Eclipse] Window menu -> Preferences -> Team). If using a version earlier than 0.9.33 you still need to perform the following steps with [http://www.eclipse.org Eclipse] Update Manager (tested with Eclipse 3.1M6, WinXP): Since version 0.9.33 [[http://subclipse.tigris.org|Subclipse]] already comes with [[SVNKit]] embedded. All you need is to select [[SVNKit]] on the SVN preference page (in [[http://www.eclipse.org|Eclipse]] Window menu -> Preferences -> Team). If using a version earlier than 0.9.33 you still need to perform the following steps with [[http://www.eclipse.org|Eclipse]] Update Manager (tested with Eclipse 3.1M6, WinXP):
Line 55: Line 55:
 * Add {{{http://svnkit.com/}}} as an update site to [http://www.eclipse.org Eclipse] Update Manager.  * Add {{{http://svnkit.com/}}} as an update site to [[http://www.eclipse.org|Eclipse]] Update Manager.
Line 59: Line 59:
If you'd like to make Subclipse use the version of SVNKit you've build, then first follow instructions above (building SVNKit for Eclipse) and then replace existing svnkit.jar in org.tigris.subversion.subclipse.core plugin with the one you've built. If you'd like to make Subclipse use the version of [[SVNKit]] you've build, then first follow instructions above (building [[SVNKit]] for Eclipse) and then replace existing svnkit.jar in org.tigris.subversion.subclipse.core plugin with the one you've built.

Getting SVNKit sources

Get the SVNKit source code with the svn command line client

$ svn co http://svn.svnkit.com/repos/svnkit/trunk svnkit

Or (to check out specific version):

$ svn co http://svn.svnkit.com/repos/svnkit/tags/TAG_NAME svnkit

Go to the checked out directory

$ cd svnkit

Building SVNKit binaries

Depending on how you are going to use SVNKit follow one of the how-to sections listed below.

Building a standalone SVNKit version

Use Ant to build SVNKit binaries:

$ ant deploy

svnkit/build/lib directory will contain a library jar file (svnkit.jar) and the Ganymed library jar (ganymed.jar) that is needed if you are going to use svn+ssh connection protocol.

Building SVNKit as an extension plugin for Eclipse

Set an ECLIPSE_HOME environment variable (should point to Eclipse 3.2.2 (or newer) home directory)

$ set ECLIPSE_HOME=/home/user/java/eclipse322

Use Ant to build SVNKit binaries:

$ ant deploy

svnkit/build/eclipse directory will contain Eclipse SVNKit plugin, feature and update site files.

To make Eclipse use the plugin you've just built, copy all files from svnkit/build/eclipse/plugins and svnkit/build/eclipse/features to corresponding Eclipse directories and restart Eclipse:

$ eclipse -clean

Or use "Local Update Site" at svnkit/build/eclipse/site directory to install an SVNKit extension plugin for Subclipse.

Using Subclipse with the SVNKit library

Since version 0.9.33 Subclipse already comes with SVNKit embedded. All you need is to select SVNKit on the SVN preference page (in Eclipse Window menu -> Preferences -> Team). If using a version earlier than 0.9.33 you still need to perform the following steps with Eclipse Update Manager (tested with Eclipse 3.1M6, WinXP):

  • Add http://svnkit.com/ as an update site to Eclipse Update Manager.

  • Use Help | Software Updates | Find and Install in main menu.
  • Install "SVNKit Subclipse Extension" feature.

If you'd like to make Subclipse use the version of SVNKit you've build, then first follow instructions above (building SVNKit for Eclipse) and then replace existing svnkit.jar in org.tigris.subversion.subclipse.core plugin with the one you've built.

After that restart Eclipse with -clean option:

$ eclipse -clean

Building_SVNKit (last edited 2008-02-21 07:00:23 by nat7)