org.jcoderz.phoenix.report
Class JcReportAntTask.NestedFindbugsElement

java.lang.Object
  extended by org.jcoderz.phoenix.report.JcReportAntTask.NestedToolElement
      extended by org.jcoderz.phoenix.report.JcReportAntTask.NestedFindbugsElement
Enclosing class:
JcReportAntTask

public static class JcReportAntTask.NestedFindbugsElement
extends JcReportAntTask.NestedToolElement


Field Summary
 
Fields inherited from class org.jcoderz.phoenix.report.JcReportAntTask.NestedToolElement
mCommandline, mMaxHeap, mPath, mTask
 
Constructor Summary
JcReportAntTask.NestedFindbugsElement(JcReportAntTask task)
           
 
Method Summary
 org.apache.tools.ant.types.Path createAuxclasspath()
          The findbugs tool needs an auxiliary classpath with all the classes, referenced from the project class files.
 org.apache.tools.ant.types.Path createPluginlist()
          The findbugs tool needs an list of jar files where all the plugins are defined in.
 File execute(File reportDir, File srcDir, File clsDir)
          Executes the findbugs tool in a separate process.
 void setConfig(String config)
           
 void setDebug(Boolean debug)
          Sets the debug parameter.
 void setEffort(String effort)
           
 void setOmitVisitors(String omitVisitors)
           
 void setWarninglevel(String warninglevel)
           
 
Methods inherited from class org.jcoderz.phoenix.report.JcReportAntTask.NestedToolElement
createClasspath, setMaxheap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JcReportAntTask.NestedFindbugsElement

public JcReportAntTask.NestedFindbugsElement(JcReportAntTask task)
Method Detail

setDebug

public void setDebug(Boolean debug)
Sets the debug parameter.

Parameters:
debug - the debug parameter.

setOmitVisitors

public void setOmitVisitors(String omitVisitors)

setConfig

public void setConfig(String config)

setEffort

public void setEffort(String effort)

setWarninglevel

public void setWarninglevel(String warninglevel)

createPluginlist

public org.apache.tools.ant.types.Path createPluginlist()
The findbugs tool needs an list of jar files where all the plugins are defined in. Minimum plugin list contains the coreplugin.

Returns:
the created plugin list path.

createAuxclasspath

public org.apache.tools.ant.types.Path createAuxclasspath()
The findbugs tool needs an auxiliary classpath with all the classes, referenced from the project class files.

Returns:
the created auxiliary classpath.

execute

public File execute(File reportDir,
                    File srcDir,
                    File clsDir)
Executes the findbugs tool in a separate process.
 maxheap:
   -maxHeap size    Maximum Java heap size in megabytes (default=256)

 effort:
   -effort[:min|default|max] set analysis effort level

  warninglevel:
     -experimental   report all warnings including experimental bug
                     patterns
     -low            report all warnings
     -medium         report only medium and high priority warnings
                     [default]
     -high           report only high priority warnings

 config:
   -exclude <filter file>     include only bugs matching given filter

 internally:
   -outputFile <filename>       Save output in named file
   -xml[:withMessages]          XML output (optionally with messages)

 auxclasspath:
   -auxclasspath <classpath>    set aux classpath for analysis

 report: sourcepath
   -sourcepath <source path>    set source path for analyzed classes
 
The target assumes that all libs needed by findbugs are on the classpath and the plugins are set via pluginlist element.

Specified by:
execute in class JcReportAntTask.NestedToolElement


Copyright 2007 The jCoderZ Project.