Hi Julien,
Thanks for your fast response.
My scenario is a bit special and involves our CI environment. Shortly, we have one jenkins job that compiles the application, runs the unit tests and packs a jar-file for distribution. Then we have another jenkins job on another machine that executes integration tests of our application, this involves for example guitesting, where code coverage is measured. The test system unzips the class files from the distribution jar into a directory and adds this to "sonar.java.binaries".
I understand this is not a very common use case, but it gives us a clear separation of building/releasing and integration testing :)
As I understand it, several binary directories are supported by the sonar scanner. The property "sonar.java.binaries" is a list according to the docs at
http://docs.sonarqube.org/display/PLUG/Java+Plugin+and+Bytecode sonar.java.binaries | Comma-separated paths to directories containing the compiled bytecode files corresponding to your source files
Regards,
Erik