My favorites | Sign in
Project Home Downloads Wiki Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Here is how to build the FindBugs Eclipse Plugin:

Install Eclipse
================
1) Download and install Eclipse 3.4.x.
2) Download and install Subclipse plugin for Subversion.
Chose [Help | Software Updates... | Available Software | Add Site...] and use
http://subclipse.tigris.org/update_1.4.x as update site url. Select checkboxes
[Subclipse (required)] and [SVNKit Adapter (optional)} and click [Install...].
3) Restart Eclipse.

Import the projects
====================
4) Choose [File | Import | SVN | Checkout Projects from SVN]. The import wizard opens.
5) In the wizard, proceed as follows:
a) Choose [Create a new repository location]. Click [Next]
b) Enter http://findbugs.googlecode.com/svn as url. Click [Next]
c) Select 3 children of the <trunk> element (hold CTRL key):
<trunk>
|
+- eclipsePlugin
+- eclipsePlugin-test
+- findbugs
Click [Next]
d) Do not change defaults on the next page. Click [Next]
e) Choose the workspace location for project sources, e.g. D:\Projects\FBWorkspace.
f) Click [Finish].
g) Source code will be checked out from SVN. This can take time, especially with the
slow Internet connection (~10 MB need to be downloaded first time).
h) Now you have three new java projects: [findbugs], [findBugsEclipsePlugin] and [findBugsEclipsePlugin-test]

Setup target platform
======================

6) Create /home/user/bin/Eclipse34 directory. Create "plugins" link there pointing to the
"plugins" directory located in the root of Eclipse 3.4 installation.
7) Set the right target platform in Eclipse. Go to
[Window | Preferences | Plugin Development | Target Platform]
and select the "Eclipse 3.4" target platform definition from the list.
Currently Eclipse 3.4 is still supported, even if Eclipse 3.6 is already released!
Additional target platforms can be setup in the similar way.
Under Windows, replace "/home/user/" path to something like C:\Documents\%user%.

Change the code
================
8) You can immediately work with the source code. In Eclipse, make sure that
[Project | Build Automatically] is enabled (this is default). In this case, after the
first checkout both projects will be compiled. There must be NO compile errors.

Debug Eclipse from Eclipse
===========================
9) Choose [Run | Debug Configurations... | Eclipse Application | right click | New],
a new default Eclipse debug configuration will be created. Choose [Debug] button to
start plugin debugging. You do not need to build anything, if
[Project | Build Automatically] is enabled. You can change the code during debugging
(hot code replace is supported).

Test Eclipse from Eclipse
==========================
10) Choose [Run | Run Configurations... | All FindBugs Plugin Tests | Run],
and all available FindBugs Eclipse plugin tests will be executed. The
checked in version of tests should not fail with the checked in FindBugs plugin code.

Build executable plug-in
=========================
11) Create local.properties file in the [findBugsEclipsePlugin] root directory.
The local.properties file must contain the location of
- Eclipse platform (key is "eclipsePlugin.dir", value is the 3.4+ Eclipse plugins folder,
see "target platform" step).
- SVN ant task (key is "svnant.home", value is the svnant 1.2.1 root folder).
You can download svnant task from http://subclipse.tigris.org/files/documents/906/43359/svnant-1.2.1.zip.
12) Open [Package Explorer] view, expand the project [findBugsEclipsePlugin].
13) Right-click the build.xml file and choose [Run As | Ant Build] from the context menu.
14) You can now watch ANT working in the console view. After a few
seconds, the console view should print "BUILD SUCCESSFUL".
15) Right click on [findBugsEclipsePlugin] to refresh the Eclipse workspace
a) In the [findBugsEclipsePlugin]/bin_build folder you will find the file
edu.umd.cs.findbugs.plugin.eclipse_<version>.<date>.zip which contains zipped plugin.
b) In the [findBugsEclipsePlugin]/dist folder you will find the contents of the
FindBugs Eclipse plugin directory as it should be installed in Eclipse.

16) For information on how to install the compiled plug-ins into Eclipse, please refer
to the document "installing_findbugsplugin.txt".

Change log

r12537 by iloveeclipse on Sep 5, 2010   Diff
Added lib directory to svn:ignore and
updated plugins docu
Go to: 
Project members, sign in to write a code review

Older revisions

r10882 by iloveeclipse on Apr 5, 2009   Diff
Updated the "how to": including plugin
tests description
r10519 by iloveeclipse on Jan 11, 2009   Diff
FB Eclipse plugin build/deployment
changes

Script changes
===============
...
r3310 by daveho on Dec 13, 2004   Diff
Initial checkin (from original
"findbugs" module)
All revisions of this file

File info

Size: 4455 bytes, 83 lines
Powered by Google Project Hosting