Yes there is one: failOnError
You should be good to go with that.
We've been using failOnError with some degree of success, but there is a problem..
This parameter causes the build to fail immediately. As a result the xslt transformation task to generate the report of the failing run isn't executed.
We'd rather fail the build in a similar way to the way we fail our flexUnit run, by setting a fail task up at the end of our macrodef:
<fail if="flexPMD.failed" message="PMD failed - check reports"/>
But this would obviously require flexPMD to populate some kind of environment variable with its status.
Is this possible at the moment?
No it is not possible at the moment.
Feel free to create a enhancement for that.