in sonar-plugin-agent/src/main/java/jetbrains/buildserver/sonarplugin/SQRBuildService.java [257:271]
private String getExecutablePath() throws RunBuildException {
final String path = getSonarScannerRoot();
final String execName = myOsType == WINDOWS ? "sonar-runner.bat" : "sonar-runner";
final File exec = new File(path + File.separatorChar + "bin" + File.separatorChar + execName);
if (!exec.exists()) {
throw new RunBuildException("SonarQube executable doesn't exist: " + exec.getAbsolutePath());
}
if (!exec.isFile()) {
throw new RunBuildException("SonarQube executable is not a file: " + exec.getAbsolutePath());
}
return exec.getAbsolutePath();
}