Details

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

      Description

      The purpose is to deprecate the way "sonar.modules" work.

      Old mechanism:

      • "sonar.modules" is a list of paths that point to Ant scripts.
      • Those scripts are loaded to define the module definitions
      • This causes some issues (see SONARPLUGINS-2156) plus the fact that it is not flexible not reusable in tools like Gradle

      New mechanism:

      • It will rely on the multi-module support implemented for the Sonar Runner (see SONARPLUGINS-2202)
      • It will be possible to specify the multi-module structure using either:
        • only properties in the root project (like explained in SONARPLUGINS-2202)
        • a mix of properties of the root project and "properties" files located in modules

      Notes:

      • the "old" mechanism will still be available as "compatibility mode"

        Issue Links

          Activity

          Hide
          Ronald Jenkins Jr added a comment -

          I'm a little confused by the description of the new mechanism. Since the multi-module structure will now refer to property files rather than Ant scripts, does this mean that the Ant Task will now require the Sonar Runner in order to perform multi-module analysis?

          Show
          Ronald Jenkins Jr added a comment - I'm a little confused by the description of the new mechanism. Since the multi-module structure will now refer to property files rather than Ant scripts, does this mean that the Ant Task will now require the Sonar Runner in order to perform multi-module analysis?
          Hide
          Fabrice Bellingard added a comment -

          The Ant Task will transparently embed the Sonar Runner. So no need to install the Sonar Runner aside the Ant Task.
          What's more, the description says that the multi-module support uses either property files or only properties (easier way in most cases). We'll update our example projects to reflect this.

          Show
          Fabrice Bellingard added a comment - The Ant Task will transparently embed the Sonar Runner. So no need to install the Sonar Runner aside the Ant Task. What's more, the description says that the multi-module support uses either property files or only properties (easier way in most cases). We'll update our example projects to reflect this.
          Hide
          Freddy Mallet added a comment -

          Manually tested !

          Show
          Freddy Mallet added a comment - Manually tested !
          Hide
          Fabrice Bellingard added a comment -

          Existing ITs migrated.

          Show
          Fabrice Bellingard added a comment - Existing ITs migrated.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: