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

ProjectFileSystem#getBuildOutputDir() should return a list of folders

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5
    • Component/s: Plugin API
    • Labels:
      None

      Description

      The current implementation of #getBuildOutputDir() returns the following (if not from a Maven project):

      ...
      return resolvePath(def.getBinaries().get(0));
      ...
      

      This has an impact on at least the Ant Task (and that is probably also the case for the Sonar Runner) when someone specifies the "binaries" property with several paths (see SONARPLUGINS-2155).

      This method should probably be called #getBuildOutputDirs() (plural) or even rename it to #getBinaries() in order to be consistent accross the different property names.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              simon.brandhof Simon Brandhof (Inactive)
              Reporter:
              fabemn OLD - Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: