jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
SonarQube Plugins
  • SonarQube Plugins
  • SONARPLUGINS-2202

Add multi-module support

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: SONAR-RUNNER-2.0
  • Component/s: SonarQube Runner
  • Labels:
    None
  • Number of attachments :
    0

Description

This feature will be based on properties to define the multi-module structure.

It should be possible to declare the following in the "sonar-project.properties" file:

...
sonar.modules=mod1,mod2,mod3,mod4

# a module has to redefine at least "sonar.projectName", as its key and its base directory has inferred from its identifier ('mod1' in this case)
mod1.sonar.projectName=Module 1

# but a module can obviously override properties 
mod2.sonar.projectKey=org.company.mod2
mod2.sonar.projectName=Module 2
mod2.sonar.sources=java-sources

# also, a module is not necessary located in a direct sub-folder
mod3.sonar.projectBaseDir=modules/mod3
mod3.sonar.projectName=Module 3
...

It should be highlighted that the key of a module is automatically prefixed by the key of its parent followed by a semi-colon, in order to:

  • prevent duplicate key problems in Sonar
  • make it possible to analyse a module outside of its parent

Issue Links

is depended upon by

Improvement - An improvement or enhancement to an existing feature or task. SONARPLUGINS-2224 Improve multi-module support

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Fabrice Bellingard added a comment - 12/Sep/12 4:12 AM

For your tests Freddy, you can use the draft documentation located here: http://docs.codehaus.org/display/SONAR/Multi-module+support+for+Sonar+Runner

Show
Fabrice Bellingard added a comment - 12/Sep/12 4:12 AM For your tests Freddy, you can use the draft documentation located here: http://docs.codehaus.org/display/SONAR/Multi-module+support+for+Sonar+Runner
Hide
Permalink
Fabrice Bellingard added a comment - 12/Sep/12 9:06 AM

ITs added.

Show
Fabrice Bellingard added a comment - 12/Sep/12 9:06 AM ITs added.
Hide
Permalink
Freddy Mallet added a comment - 13/Sep/12 8:04 AM

Works well Fabrice, could you just integrate the two following improvements:

  • on module, by default the value of the sonar.projectName should be automatically deduced from the module key (similar to what is done with sonar.projectKey and sonar.projectBaseDir properties)
  • the working directory of module, should be located inside the working directory of the parent to prevent creating some ".sonar" working directory everywhere.
Show
Freddy Mallet added a comment - 13/Sep/12 8:04 AM Works well Fabrice, could you just integrate the two following improvements: on module, by default the value of the sonar.projectName should be automatically deduced from the module key (similar to what is done with sonar.projectKey and sonar.projectBaseDir properties) the working directory of module, should be located inside the working directory of the parent to prevent creating some ".sonar" working directory everywhere.
Hide
Permalink
Fabrice Bellingard added a comment - 13/Sep/12 11:14 AM

Modifications done.

Show
Fabrice Bellingard added a comment - 13/Sep/12 11:14 AM Modifications done.
Hide
Permalink
Fabrice Bellingard added a comment - 13/Sep/12 11:39 AM

ITs added.

Show
Fabrice Bellingard added a comment - 13/Sep/12 11:39 AM ITs added.
Hide
Permalink
Freddy Mallet added a comment - 14/Sep/12 6:48 AM

Manually tested !

Show
Freddy Mallet added a comment - 14/Sep/12 6:48 AM Manually tested !

People

  • Assignee:
    Fabrice Bellingard
    Reporter:
    Fabrice Bellingard
Vote (0)
Watch (3)

Dates

  • Created:
    03/Sep/12 4:56 AM
    Updated:
    14/Sep/12 7:36 AM
    Resolved:
    13/Sep/12 11:14 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.