Setup
1.Download and install findbugs:
Manual: http://findbugs.sourceforge.net/manual/installing.html
Downloads: http://findbugs.sourceforge.net/downloads.html
2. Set/add an environment variable that points to where you extracted findbugs:
Code Block |
---|
> export FINDBUGS_HOME=C:/findbugs-2.0.2 |
3. If you do not already have a development version of the RI, along with ant and an appropriate JDK installed, install using Quick Start.
4. Start findbugs. There is a convenience target in $OCAPROOT/../ (if you use checkout_dev_env.sh):
Code Block |
---|
> ant findbugs |
Otherwise, as long as your environment is setup correctly in $OCAPROOT, use:
Code Block |
---|
> ant -f build.findbugs |
Output
The default is to create HTML output in $OCAPROOT/ocap-bugs.html