private String checkExecutable()

in sonar-plugin-agent/src/main/java/jetbrains/buildserver/sonarplugin/msbuild/SQMSBuildExecutableFactory.java [68:79]


    private String checkExecutable(final File executable) throws RunBuildException {
        if (!executable.exists()) {
            return "Incorrect SonarScanner for MSBuild installation: " + executable.getAbsolutePath() + " not found";
        }
        if (!executable.isFile()) {
            return "Incorrect SonarScanner for MSBuild installation: " + executable.getAbsolutePath() + " is not a file";
        }
        if (!myMonoLocator.isMono() && !executable.canExecute()) { // executability not need for running in mono
            return "Incorrect SonarScanner for MSBuild installation: cannot execute " + executable.getAbsolutePath();
        }
        return null;
    }