aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-08-01 16:31:07 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-08-04 14:58:16 +0200
commitac7edbe5890ae7921593dda7520157dca652860d (patch)
treef08f51e73ae249e74c4e9a4a33ef6b004fe177f4 /plugins
parente6b28c1ba4e7627f4599590ddfcc21875843ce87 (diff)
downloadsonarqube-ac7edbe5890ae7921593dda7520157dca652860d.tar.gz
sonarqube-ac7edbe5890ae7921593dda7520157dca652860d.zip
SONAR-9574 Same file indexed in different modules
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/extensions/XooProjectBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/extensions/XooProjectBuilder.java b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/extensions/XooProjectBuilder.java
index 28f1ec6a4eb..38e690c0671 100644
--- a/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/extensions/XooProjectBuilder.java
+++ b/plugins/sonar-xoo-plugin/src/main/java/org/sonar/xoo/extensions/XooProjectBuilder.java
@@ -19,12 +19,11 @@
*/
package org.sonar.xoo.extensions;
+import java.io.File;
import org.sonar.api.batch.bootstrap.ProjectBuilder;
import org.sonar.api.batch.bootstrap.ProjectDefinition;
import org.sonar.api.config.Settings;
-import java.io.File;
-
public class XooProjectBuilder extends ProjectBuilder {
private Settings settings;
@@ -39,6 +38,7 @@ public class XooProjectBuilder extends ProjectBuilder {
return;
}
ProjectDefinition root = context.projectReactor().getRoot();
+ root.resetSources();
ProjectDefinition module = ProjectDefinition.create()
.setKey(root.getKey() + ":module1")