Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9198

Support multi-value properties containing comma

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5-M3, 6.5
    • Component/s: Scanner
    • Labels:
      None

      Description

      When passing a multi-value property, the separator is a comma. It means that any value containing a comma itself will break the parsing.
      Example:

      sonar.sources=c:\someFileWithA,Inside.txt

      will lead to sonar.sources decoded as 2 values:

      • c:\someFileWithA
      • Inside.txt

      Proposal:

      • introduce a CSV like syntax for multi-valued properties
      • encourage API users to read multi-valued properties using Configuration::getStringArray to benefit from the advanced parsing

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.henry Julien Henry
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: