Tuesday Nov 06, 2007

Hudson, NetBeans, Findbugs and "Online IDE"

 Well, it's been a while ... but anyway, I'm back. Got through a couple of pretty good books in the meantime (Freakonomics, Joel On Software, Idioti na plavbe kolem sveta, ... ;O) ), but more important I have been playing with Yarda Tulach's online FindBugs plugin for NetBeans. I like the "Online IDE" approach a lot. If you use Hudson for building your project, it automatically builds your FindBugs results as well.

 Now when the data are computed on server, why would you need to compute them locally to be able to see them in your IDE together with the code? You don't ! It's enough to do compilation - it takes too long already anyway. So how to reuse the data from Hudson?

 Just use latest NetBeans 6 nightly, and install Find Bugs
Tasks for NetBeans.org
module from daily development update center -
then you will get smooth integration with Task List. Install the
module, open the task list window (Window -> Task List), select which project/s you want to scan and wait till the list of FindBugs errors is downloaded.

 Yarda's plugin worked only for NetBeans NBM projects, but I wanted to be able to use it for our WSIT project, which is part of Metro web service stack. Those projects are setup as a plain Java SE projects. So I enhanced the plugin with the ability to work for this type projects as well. The url to findbugs result is stored in 'findbugs.url' property in project.properties file, so you can use it for your project (and your Hudson) as well.

 When you use it, it looks like this:


About

The views expressed on this [blog; Web site] are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
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
    
       
Today
Bookmarks