findbugs + ant 内存不够怎么办

ant文件里加

<!-- findbugs 配置 -->
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/>

<property name="findbugs.home" value="D:/Hudson/findbugs-1.3.9/lib" /> 

 

配置,,

 

 

<target name="findbugs" depends="compile"> 
<findbugs home="${findbugs.home}" output="xml" outputFile="./findbugs.xml"  jvmargs="-Xmx1024m" timeout="900000">                   
<class location="${source.deploy}/WEB-INF/classes" />
<sourcePath path="${src.dir}" />                                        
</findbugs>

</target> 

 

target 这样些,内存不够就增加jvmargs后面的数值,,,生成findbugs.xml为空报告timeout 错误时候,后面timeout参数增加数值.... 

posted @ 2011-07-07 15:50  莫烦恼  阅读(1072)  评论(0)    收藏  举报