Monday, November 2, 2009

Electruc Box Level 19

Struts2 - Unchecked Exceptions log


(hudson) Inside my Continuous Integration system using ANT also identified potential error by FindBugs. For this purpose, the following target in the ANT script is defniert:


name = "FindBugs"
className = "edu.umd. cs.findbugs.anttask.FindBugsTask " >
   
refid= "findbugs.class.path"
/>




name= "run-findbugs" >
       run findbugs (FindBugs home: $ {} env.FINDBUGS_HOME)
dir = "$ {findbugs.report . dir} " />


dir =" $ {FindBugs . report.dir} "
/>
       home= "ext/findbugs-1.3.9-rc1" output= "xml:withMessages" outputFile= "${findbugs.report.dir}/findbugs_vger.xml"
>
            
location=
"${build.jar.dir}" />              refid= "build.class.path"
/> ;
path = "$ {src.dir}" />

but occurs at larger source code Analyzes an out of memory error: [ FindBugs ] Executing from FindBugs ant task [
FindBugs
] Running FindBugs ... [FindBugs] Out of memory [FindBugs] Total memory: 66M [FindBugs] free memory: 0M

FindBugs forks the process and makes a new JVM to instance, so a memory increase must take place within the FindBugs tags:

home = "ext/findbugs-1.3.9-rc1" jvmargs
= "-server-Xmx256m" ...

0 comments:

Post a Comment