How to install SubVersion plugin for IDEA IntelliJ 4.5 under Win32 ?

Java

I wrote a small document for my team that describes how to install the SubVersion plug-in for IDEA IntelliJ 4.5. SubVersion is a version control system that aims to replace CVS one day. Intellij 4.5 is my favorite Java IDE I work with.

The svnup plugin for Intellij 4.5 is still in beta mode. I spent 2 hours to make it work under Windows just because I was missing some DLL... The web site is a bit ouf of date, and the documentation also. I finally found some answers in the mailing list.

Here is my small how-to:

------------------------------------------------------------------------------
How to install the subversion plugin for IDEA Intellij 4.5 ?
------------------------------------------------------------------------------
Platform: Microsoft Windows 2000 Professional Edition.
------------------------------------------------------------------------------
Author: Nicolas Martignole
Date  : 19th oct 2004

Install TortoiseSVN for Win32. The zip file is available from
http://tortoisesvn.tigris.org/download.html
After a reboot, from the Start Menu select Settings->Control Panel
Select "System". In the "Advanced" tab pane, select "Environment variables"
then in the 2nd pane, add to PATH the TortoiseSVN/bin folder so that the
various DLL which are located under this folder gets added to the PATH.
Your PATH env should now contain "C:\Program Files\TortoiseSVN\bin"

The official plugin website is http://svnup.tigris.org/

1/ Download svnup-0.9.2.jar from
http://svnup.tigris.org/files/documents/646/16639/svnup-0.9.2.jar

2/ Download svn4idea4-0.9.1.jar for IDEA IntelliJ 4.x. There's no 9.2
actually but that is not important. The URL is:
http://svnup.tigris.org/files/documents/646/16579/svn4idea45-0.9.1.jar

3/ Download svn-win32-1.1.0_javahl.zip from the link:
http://subversion.tigris.org/files/documents/15/17374/svn-win32-1.1.0_javahl.zip

4/ Unzip svn-win32-1.1.0_javahl.zip to a temp folder, you should get 2 files:
   - libsvnjavahl-1.dll
   - svnjavahl.jar

5/ Creates a new folder named "svn4idea" under the IDEA Intellij 4.5 plugins folder
   (C:\IntelliJ-IDEA-4.5\plugins)

6/ Creates a lib folder into this folder (e.g. C:\IntelliJ-IDEA-4.5\plugins\svn4idea)

7/ Copy svnjavahl.jar, svn4idea4-0.9.1.jar and svnup-0.9.2.jar to the lib folder
   you just created (C:\IntelliJ-IDEA-4.5\plugins\svn4idea\lib)

9/ Copy libsvnjavahl-1.dll (file from svn-win32-1.1.0_javahl.zip )
   to C:\IntelliJ-IDEA-4.5\bin so that IDEA Intellij can find it.

10/ Start idea 4.5

11/ In the File menu, select "Settings"

12/ In the Project tab, select "Version Control". A Subversion option should appear
in the Combo box.

It is really important that you install a SVN client such as TortoiseSVN
before you intend to use the svnup plugin for IDEA Intellij.
The JavaHL svnup DLL requires a bunch of DLL from any SVN client.

Update 28th oct 2004:
Thanks Michael. I corrected the file name and the how-to should be correct now.

Commentaires (0)

Aucun commentaire pour le moment.