Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-1755

Fix conversion of property value "sonar.cfamily.build-wrapper-output" into absolute path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 4.6
    • Component/s: Sonar Plugin
    • Labels:
      None

      Description

      SonarQube.Scanner.MSBuild.exe begin /d:sonar.cfamily.build-wrapper-output=C:\sonar\prjbw
      build-wrapper-win-x86-64.exe --out-dir C:\sonar\prj\bw msbuild /t:rebuild
      SonarQube.Scanner.MSBuild.exe end
      

      notice that there is typo and specified paths are not the same, which results in

      Using build-wrapper output: C:\sonar\prjddC:\sonar\prj\dd
      ...
      ERROR: Error during SonarQube Scanner execution
      java.lang.RuntimeException: java.io.FileNotFoundException: C:\sonar\prj\C:\sonar\prjbw\build-wrapper-dump.json (The filename, directory name, or volume label syntax is incorrect)
      

      notice that path - is concatenation of project directory and property.

      Reported by Alexandre Gigleux after multiple users faced this during evaluation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              evgeny.mandrikov Evgeny Mandrikov
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: