Here is how to build the FindBugs Eclipse Plugin:
Install Eclipse
================
1) Download and install Eclipse 3.6.+ (minumum supported version).
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/Eclipse36 directory. Create "plugins" link there pointing to the
"plugins" directory located in the root of Eclipse 3.6 installation.
7) Set the right target platform in Eclipse. Go to
[Window | Preferences | Plugin Development | Target Platform]
and select the "Eclipse 3.6" target platform definition from the list.
Currently Eclipse 3.6 is still supported, even if Eclipse 3.8 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.6+ 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".
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
2013年05月22日到官网上下载的最新findbugs eclipse插件。安装方法,下载此zip文件后,解压到当前文件夹,将解压得到的整个文件夹剪切到eclipse安装路径下的plugins目录中,启动eclipse, 右击一个java项目,右键菜单中有findbugs菜单,则安装成功。
资源推荐
资源详情
资源评论
收起资源包目录
edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204.zip (46个子文件)
edu.umd.cs.findbugs.plugin.eclipse_2.0.2.20121204
plugin_ja.properties 498B
RELEASENOTES 14KB
plugin.properties 305B
plugin_fr.properties 239B
META-INF
MANIFEST.MF 2KB
umdFindbugs.png 29KB
FindBugs.png 47KB
.options 552B
icons
export_bugs.png 469B
buggy-tiny.png 4KB
refresh.gif 330B
buggy-tiny-orange.png 4KB
treeView.png 4KB
buggy-tiny-yellow.png 4KB
buggy-tiny-green.png 4KB
buggy-tiny-gray.png 472B
bug.gif 916B
detailsView.png 4KB
annotationsView.png 4KB
warning.png 409B
runFindbugs.png 4KB
buggy-tiny-blue.png 4KB
bugview.gif 562B
findbugs-plugin.jar 3.16MB
about.properties 307B
plugin
findbugsCommunalCloud.jar 1KB
noUpdateChecks.jar 1KB
pluginlist.properties 44B
README 299B
webCloudClient.jar 590KB
doc
building_findbugsplugin.txt 4KB
installing_findbugsplugin.txt 3KB
plugin.xml 54KB
lib
annotations.jar 73KB
dom4j-1.6.1.jar 307KB
asm-tree-3.3.jar 21KB
bcel.jar 570KB
asm-3.3.jar 43KB
jFormatString.jar 27KB
jaxen-1.1.1.jar 222KB
commons-lang-2.4.jar 256KB
asm-commons-3.3.jar 37KB
jsr305.jar 31KB
smallBuggy.png 2KB
about.ini 70B
about.html 1KB
共 46 条
- 1
躺枪同学
- 粉丝: 6
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页