为什么在findbugs.xml文件中没有生成FindBugs报告? 我也试过HTML输出。我为它做的配置有什么错误?
<target name="findbugs" depends="init,classpaths">
<echo message="Executing findbug..." />
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.classpath" />
<findbugs home="${findbugs.home}" output="xml" outputFile="findbugs.xml" jvmargs="-Xmx512m">
<sourcePath path="${build.src.java}" />
<fileset dir="${build.dest.classes}">
<include name="**/*.class" />
<include name="**/*.java" />
<exclude name="**/Test*.class" />
</fileset>
<auxClasspath>
<path refid="build.classpath" />
</auxClasspath>
</findbugs>
</target>