SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1194

Support for path-like structures in sonar.libraries values

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ANT-TASK-1.2
    • Component/s: Ant Task
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It would be nice to be able to use a refid to an existing classpath defined in the ant file.

        Activity

        Hide
        Freddy Mallet added a comment -

        According to this thread of discussion : http://old.nabble.com/Specifying-libraries-into-sonar-using-ant-td32136442.html#a32379763

        A workaround to ease the definition of the sonar.librairies property value could be to use the following piece of code :

        <path id="lib.cp">
            <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
            </fileset>
        </path>
        
        <pathconvert property="sonar.libraries" pathsep="," refid="lib.cp" targetos="unix"/>
        
        Show
        Freddy Mallet added a comment - According to this thread of discussion : http://old.nabble.com/Specifying-libraries-into-sonar-using-ant-td32136442.html#a32379763 A workaround to ease the definition of the sonar.librairies property value could be to use the following piece of code : <path id= "lib.cp" > <fileset dir= "${lib.dir}" > <include name= "**/*.jar" /> </fileset> </path> <pathconvert property= "sonar.libraries" pathsep= "," refid= "lib.cp" targetos= "unix" />
        Hide
        Fabrice Bellingard added a comment -

        Tested.

        Show
        Fabrice Bellingard added a comment - Tested.

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Adrian Dozsa
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: