Here is how to build the FindBugs Eclipse Plugin:
Install Java 7+
===============
Make sure you are using Java 7 or greater (since version 3.0 FindBugs requires Java 7).
Install Eclipse
================
1) Download and install Eclipse 3.6.+ (minumum supported version).
2) Download and install EGit plugin for Git.
Chose [Help | Software Updates... | Available Software | Add Site...] and use
http://download.eclipse.org/egit/updates as update site url. Select both checkboxes
[Eclipse Git Team Provider] and [JGit]
3) Uncheck "Task focused interface" child element of "Eclipse Git Team Provider".
Uncheck "Contact all update sites..." at the bottom and click [Install..., Next..., OK].
4) Restart Eclipse.
Import the projects
====================
5) Choose [File | Import | Git | Projects from Git | Next]. The Git project import wizard opens.
6) In the wizard, proceed as follows:
a) Choose [Clone URI]. Click [Next]
b) Enter https://code.google.com/p/findbugs/ as url. Click [Next]
c) Select "master" branch (for latest code).
d) Select local destination directory (default is /home/%username%/git/findbugs). Click [Next]
Source code will be now checked out from Git, so about 150 MB will be transferred from remote.
e) OK to "Import existing projects". Click [Next]
f) Select only the projects below (the rest can be imported later if needed):
+- findbugs
+- findbugsEclipsePlugin
+- findbugsEclipsePlugin-test
+- findbugsTestCases
Click [Finish].
g) Now "findbugs" project will be compiled by Eclipse and should not have any errors,
the rest will have classpath errors due missing libraries/wrong target platform.
Setup target platform/findbugs libraries
========================================
7) Create /home/user/bin/Eclipse36 directory. Create "plugins" link there pointing to the
"plugins" directory located in the root of Eclipse 3.6 installation. The Eclipse 3.6.2 can be fetched from
the official http://archive.eclipse.org/eclipse/downloads/drops/R-3.6.2-201102101200/ page.
8) 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 4.3 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%.
9) We need command line now:
cd /home/%username%/git/findbugs/findbugs
ant
cd ../eclipsePlugin
echo eclipsePlugin.dir=/home/user/bin/Eclipse36 > local.properties
ant
10) In Eclipse, refresh all projects (hit F5 in Explorer view) => now all errors should disappear.
Change the code
================
11) 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
===========================
12) Choose [Run | Debug Configurations... | Eclipse Application | FindBugs],
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
==========================
13) Choose [Run | Run Configurations... | JUnit Plugin Test | 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
=========================
14) Open [Package Explorer] view, expand the project [findBugsEclipsePlugin].
15) Right-click the build.xml file and choose [Run As | Ant Build] from the context menu.
16) You can now watch ANT working in the console view. After a few
seconds, the console view should print "BUILD SUCCESSFUL".
17) 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.
18) For information on how to install the compiled plug-ins into Eclipse, please refer
to the document "installing_findbugsplugin.txt".
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
edu.umd.cs.findbugs.plugin.eclipse_3.0.1.20150306.zip (49个子文件)
edu.umd.cs.findbugs.plugin.eclipse_3.0.1.20150306
plugin_ja.properties 613B
RELEASENOTES 14KB
plugin.properties 305B
plugin_fr.properties 239B
META-INF
MANIFEST.MF 4KB
umdFindbugs.png 29KB
FindBugs.png 47KB
.options 552B
icons
export_bugs.png 469B
buggy-tiny.png 4KB
confidence-normal.png 3KB
refresh.gif 330B
confidence-high.png 3KB
buggy-tiny-orange.png 4KB
treeView.png 4KB
buggy-tiny-yellow.png 4KB
buggy-tiny.xcf 14KB
buggy-tiny-green.png 4KB
buggy-tiny-yellow2.png 3KB
buggy-tiny-gray.png 472B
bug.gif 916B
detailsView.png 4KB
annotationsView.png 4KB
warning.png 409B
confidence-low.png 3KB
runFindbugs.png 4KB
buggy-tiny-blue.png 4KB
confidence-ignore.png 3KB
bugview.gif 562B
findbugs-plugin.jar 3.48MB
about.properties 307B
plugin
findbugsCommunalCloud.jar 1KB
noUpdateChecks.jar 1KB
README 299B
webCloudClient.jar 590KB
doc
building_findbugsplugin.txt 5KB
installing_findbugsplugin.txt 3KB
plugin.xml 60KB
lib
annotations.jar 75KB
dom4j-1.6.1.jar 307KB
jaxen-1.1.6.jar 226KB
bcel-6.0-SNAPSHOT.jar 598KB
jFormatString.jar 34KB
commons-lang-2.6.jar 278KB
asm-debug-all-5.0.2.jar 371KB
jsr305.jar 32KB
smallBuggy.png 2KB
about.ini 70B
about.html 1KB
共 49 条
- 1
资源评论
- 1122龙龙2018-12-13没问题,妥妥能用
hhheeee2020
- 粉丝: 0
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Ruby基于Ruby的MKS rebase脚本 Ruby语言基础
- 基于GPT+Pyhon开发的网页游戏,类似于最火的文字游戏《人生重开模拟器》源码
- 基于qt+C++实现u盘插拔检测.+源码(毕业设计&课程设计&项目开发)
- rust开发封装的windows gui源码
- checkpoint.zip
- 无人机姿态和轨迹跟踪控制-反步控制方法
- 基于Qt+opencv+C++实现图像旋转+自动&&手动+直线检测,角度计算+界面操作+源码(期末大作业&课程设计&项目开发)
- Object-CC++对象库,实现类似于Java的Object类的Object
- 基于servlet的简单游戏管理系统
- 广工基于Libero的数字逻辑设计仿真及验证实验报告
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功