jacoco/jacoco — pull request #20 by atomicknight (2012-09-06 03:42:11+00:00)
Title: Modify Maven plugin to avoid printing a stack trace if the execution data file is missing (issue #19)

The modifications are as follows:

- Modify the report mojo to log an INFO message if the data file is missing. If this condition is met, skip the rest of the plugin execution.
- Split the existing it-report-without-dump test into two separate tests: one to verify the expected behavior when the data file is missing (it-report-missing-data-file) and one to verify the expected behavior when the data file exists, but cannot be read (it-report-unreadable-data-file). I found the latter to be a bit tricky because I couldn't think of a reliable way to force an IOException to be thrown apart from revoking read permissions on the target file. But doing so also introduced platform-specific issues that I couldn't resolve (I mucked around with the assembly plugin for a while, but concluded that that was a dead end). Suggestions are welcome.