Well, I perfecty undestand this, and this is why for every tool, you have 3 properties that allow you to reuse existing reports.
For instance, for PHP CodeSniffer:
<property name="sonar.phpCodesniffer.analyzeOnly" value="true" />
<property name="sonar.phpCodesniffer.reportFileRelativePath" value="../../logs" />
<property name="sonar.phpCodesniffer.reportFileName" value="cs-report.xml" />
This will tell Sonar to get the "cs-report.xml" report file located in the "logs" folder of your project. You have to use "../.." as the path is relative to the temporary working directory, which is ".sonar/target" when using Ant.
Don't those properties meet your needs?
Hi Sebastian,
what is "sonar.binaries" supposed to be used for in the PHP world?
Concerning the build directory, I'm gonna have a look at it.