I want to start findBugs on existing project (on command line there are currently 522 bugs).
How can I set in the ant file (under findbugs target) the option to fail the build if there are more than 522 bugs found?
I want to actually fail the ant build and not to understanf it manually from the output report.
Thanks.
That may not be possible. You can use data mining task and do some special handling. http://findbugs.sourceforge.net/manual/datamining.html