ubala / aribaweb

Automatically exported from code.google.com/p/aribaweb
Apache License 2.0
1 stars 2 forks source link

Findbugs Report - Enhancement #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1) Download findbugs from http://findbugs.sourceforge.net
2) Extract to any folder you like
3) Add environmental variable FINDBUGS_HOME to point to the extracted 
location.
4) Add the following just above the macro definition in AW_HOME\build.xml

    <property name="findbugs.home" location="${env.FINDBUGS_HOME}"/>
    <taskdef name="findbugs" 
classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/>
    <target name="findbugs">
       <findbugs home="${findbugs.home}"
           output="html" outputFile="findbugs.html" jvmargs="-Xms512M -
Xmx512M ">
          <sourcePath path="${basedir}/src" />
          <class location="${basedir}/build/classes" />
       </findbugs>
    </target>

5) Open the command prompt and cd to %AW_HOME% and issue the command: ant 
findbugs

What is the expected output? What do you see instead?
Attached is the generated report.

Original issue reported on code.google.com by ramesh.mandaleeka on 26 Feb 2009 at 1:27

Attachments:

GoogleCodeExporter commented 9 years ago
Nearly all of these errors are 1) in the examples, and 2) the complains about 
how the *Groovy compiler* uses 
"new Integer()" instead of "Integer.valueOf()".

Given that I see zero error reported on any of the core frameworks 
(ariba.util.jar, ariba.aribaweb.jar, etc) I 
suspect that something in the way the tool was configured failed to point it at 
all of the jars.

Original comment by Ariba...@gmail.com on 1 Mar 2009 at 6:26