File parentBaseDir = new File(parentProps.getProperty(PROPERTY_PROJECT_BASEDIR));
if (parentProps.containsKey(PROPERTY_MODULES)) {
for (String module : getListFromProperty(parentProps, PROPERTY_MODULES)) {
- Properties moduleProps = extractModuleProperties(module, projectProps);
+ Properties moduleProps = extractModuleProperties(module, parentProps);
moduleProps = loadChildConfigFile(parentBaseDir, moduleProps, module);
// the child project may have children as well
Properties properties = conf.properties();
assertThat(properties.getProperty("1.sonar.projectName")).isEqualTo("Module 1");
- assertThat(properties.getProperty("11.sonar.projectName")).isEqualTo("Module 11");
- assertThat(properties.getProperty("12.sonar.projectName")).isEqualTo("Module 12");
+ assertThat(properties.getProperty("1.11.sonar.projectName")).isEqualTo("Module 11");
+ assertThat(properties.getProperty("1.12.sonar.projectName")).isEqualTo("Module 12");
assertThat(properties.getProperty("2.sonar.projectName")).isEqualTo("Module 2");
}
1.sonar.projectName=Module 1
1.sonar.projectBaseDir=module1
1.sonar.modules=11,12
-11.sonar.projectBaseDir=module11
-11.sonar.projectName=Module 11
-12.sonar.projectBaseDir=module12
-12.sonar.projectName=Module 12
+1.11.sonar.projectBaseDir=module11
+1.11.sonar.projectName=Module 11
+1.12.sonar.projectBaseDir=module12
+1.12.sonar.projectName=Module 12
2.sonar.projectName=Module 2
2.sonar.projectBaseDir=module2
\ No newline at end of file