I installed findbugs into my ant lib directory and added the following code into my main ANT script:
<target name="findbugs" depends="init">
<findbugs home="C:\\findbugs\\" output="html outputFile="C:\\findbugs\\out.html" jvmargs="-Xms512M">
<sourcePath path="${messageaggregator.src}" />
<class location="${messageaggregator.src}"/>
</findbugs>
</target>
The following xml is called within the init target:
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
On running the ANT script, all I get is the following output:
findbugs: [findbugs] Executing findbugs from ant task [findbugs] Running FindBugs... [findbugs] BCEL class compatability error. [findbugs] The version of class org.apache.bcel.generic.ObjectType found was not compatible with [findbugs] FindBugs. Please remove any BCEL libraries that may be interfering. This may happen [findbugs] if you have an old version of BCEL or a library that includes an old version of BCEL [findbugs] in an "endorsed" directory. [findbugs] Output saved to C:\\findbugs\\out.html
Why is findbugs not working?