I am building my application using ANT and I am checking my code for any Findbugs violations.
Now, my objective is to stop the build whenever my code contains particular findbug violation.
Is this possible using ANT & Findbugs?
N.B. Preferably not to write to any custom class.
Use the warningsProperty attribute on your findbugs task to set a property for any warnings:
and fail
taskif warnings are produced:For example: