Subclipse - Install, Use and Compile
Subclipse - Install, Use and Compile
Abstract. In this memo, we explain how to install, use and compile Subclipse, a Subversion plug-in for
Eclipse. We show as may figures as possible.
1 Introduction
Subversion [1] is a version control tool like CVS [2], but the Subversion project is started to replace
CVS (by the same developers of CVS) due to several limitations of CVS such as lack of versioning support
for directory and file metadata, namespace problems, complexity in administration, etc. Subversion uses
Apache HTTPD [3] server as their server and uses open protocols, such as HTTP[4], WebDAV [5], and
DeltaV [6]. Subversion will be the next generation version control system, so we strongly recommend
using Subversion as your version control system for software development. More information about
Subversion is available from the project home page, http://subversion.tigris.org.
Eclipse [7] is an open extensible software development framework. Due to its openness and extensibility
with plugin architecture, more and more developers start using and developing it, and many researchers try
to build their own research ideas on top of the Eclipse platform. At the time of this writing, there are more
than 400 Eclipse plug-ins are available [8].
Subclipse [9] is Subversion plug-in for Eclipse. It aims to provide all Subversion functionality to the
Eclipse development environment. Its an open source project as well, and available at the project
homepage, http://subclipse.tigris.org/
In this memo, we briefly introduce how to install and use Subclipse for Subversion and Eclipse users.
We also give guidelines for hacking the source code of Subclipse for developers to contribute to the
Subclipse project.
2 Installation
Installation process is quite simple:
1) Download a distribution Zip file at Subclipse website.
2) Unzip the file into the parent directory of the eclipse installation directory, e.g. if your Eclipse
installation directory is C:\Eclipse, then unzip to C:\.
3) Restart eclipse.
http://svn.collab.net/repos/subclipse/. If you are using Eclipse 2.1.x you can check out source code from
http://svn.collab.net/repos/subclipse/. If you are using Eclipse 3.0, you check out source code at a branch
from the version tree at http://svn.collab.net/repos/subclipse/branches/subclipse/subclipse-3/.
figure in figure 2. Browse down to the /trunk or /branches/subclipse/subclipse3. We need to check out as a
project for three directories:
svnClientAdapter
core
ui
By right clicking on a SVN directory, you can check out the directory as a project. We have two options
to check out: Check Out As and Check Out As Project. As gives us more choice such as
project name, type, etc. As project just checks out the project as the directory name. For example if we
check out /branches/Subclipse/Subclipse3/core directory using As project, the project name is core
and local directory for checked out source code is <eclipse installation dir>/workspace/core. We
recommend to checkout using As project for Subclipse source code. After checking out three directories,
you will have three projects: svnClientAdapter, core, and ui. The figure 2 shows the menu for check out.
Table 1 shows the summary of projects you need to checkout.
Table 1 Repository and Projects
Eclipse
version
2.0.x
3.0
Repository
Project
http://svn.collab.net/repos/subclipse/trunk/svnClientAdapter
http://svn.collab.net/repos/subclipse/trunk/subclipse/core
http://svn.collab.net/repos/subclipse/trunk/subclipse/ui
http://svn.collab.net/repos/subclipse/branches/subclipse/subclipse3/svnClientAdapter/
http://svn.collab.net/repos/subclipse/branches/subclipse/subclipse3/subclipse/core/
http://svn.collab.net/repos/subclipse/branches/subclipse/subclipse3/subclipse/ui/
svnClientAdapter
core
ui
svnClientAdapter
core
ui
Figure 3. Add a new library. Right click on a project and select Properties, this brings up left half
of Figure 2. Select Java Build Path, then pick Libraries from multipane and click on Add
Variable button. A new window appears like right half of Figure 2. Select ECLIPSE_HOME<eclipse install dir> and click Extend button. Another new window appears and select
plugins>org.eclipse.swt.win32_x.x.x>ws>win32>swt.jar.
Another way to add new library is using Plug-in Development Environment (PDE). If you click
plugin.xml in core project, you will see PDE shown in Figure 4. You can select dependencies and use
context menu (right mouse button). You can select the Computer Build Path menu to automatically
computer build path for you. You should compute core first, and ui the second.
When you created a new resource you can add it into Subversion repository using the Add to version
control menu in the team menu (right half of Figure 6). If you have commit permission, you can commit
your changes. All Subversion functions are available in the team menu shown in figure 6.
If you dont have the commit permission or want to create a patch, you can use the Create Patch
menu in the team menu. The patch wizard windows will show and ask several options. You can create a
patch as a file, or simply copy it to the clipboard. Figure 7 shows the process to create a patch.
You can send your patch to Subclipse development mailing list, [email protected], if you want to
contribute to the project. The patch might not be accepted by the core developers though. Even if it will not
get accepted, you can still make a deployable plug-in for your friends or yourself. We need to setup the
target environment, by choosing menu Window>Preferences>Plug-In Development>Target Platform
shown in Figure 8. In that preference window, you need to select all plug-ins except Subclipse, since we
need to add compiled Subclipse. Figure 9 shows the exporting process. The zip file includes the plug-ins
and libraries. You or your friends can unzip the file into their Eclipse directory to deploy new compiled
Subclipse.
4 Conclusions
If you are using the Eclipse, Subversion, Subclipse, we would say youve got the right choice for the
next generation software development tools. We hope this memo can be helpful to those who start using
Subclipse and those who try to contribute to the Subclipse project as well. We also feel thankful to those
who started the Subclipse project in the first place and other enthusiastic users who answered our questions
regarding using and compiling Subclipse.
References
1.
2.
3.
4.
5.
6.
7.
8.
9.