SonarQube Runner
  1. SonarQube Runner
  2. SONARUNNER-68

Fix DOS script to support Sonar 3.6 tasks

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.2
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The Unix script works fine, and the DOS script should call Java in the same way in order to support Sonar 3.6 tasks (e.g. "sonar-runner views").

      The following line:

      %JAVA_EXEC% %SONAR_RUNNER_OPTS% -jar "%SONAR_RUNNER_HOME%\lib\sonar-runner-dist-${project.version}.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" "-Dproject.home=%PROJECT_HOME%" %*
      

      should be replaced by:

      %JAVA_EXEC% %SONAR_RUNNER_OPTS% -cp "%SONAR_RUNNER_HOME%\lib\sonar-runner-dist-${project.version}.jar" "-Drunner.home=%SONAR_RUNNER_HOME%" "-Dproject.home=%PROJECT_HOME%" org.sonar.runner.Main %*
      

      ("-jar" replaced by "-cp" and "org.sonar.runner.Main" class called as a consequence)

        Activity

        Hide
        Fabrice Bellingard added a comment -

        Tested by David.

        Show
        Fabrice Bellingard added a comment - Tested by David.

          People

          • Assignee:
            Fabrice Bellingard
            Reporter:
            Fabrice Bellingard
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: