I ran into two problems regarding the sonar-runner script (v2.0). On our installation I created a symbolic link in /usr/local/bin to start sonar-runner. I wanted to keep things clean by avoiding to set SONAR_RUNNER_HOME explicitly before execution of the script.
I also noticed that when SONAR_RUNNER_HOME is automatically resolved, the validation of SONAR_RUNNER_HOME was skipped. This means that invalid resolutions can skip validation (as was the case with my symlink).
I added a patch that will:
- test for the readlink command and if present, use it to correctly resolve symbolic links
- always run the validation of SONAR_RUNNER_HOME, even if it was automatically detected
Both are small changes, so I included them in one patch-file. You can find the patch in attachment.