aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-01-24 01:42:22 +0300
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-01-24 01:54:29 +0300
commitfe9937de8631f275d52a00db06eb92a0ab668a37 (patch)
treee8039bbdd982e362679cdf0e82da3a643c4e6d9f /sonar-batch
parent6b5035087075113699015583fd4d76b75bf36894 (diff)
downloadsonarqube-fe9937de8631f275d52a00db06eb92a0ab668a37.tar.gz
sonarqube-fe9937de8631f275d52a00db06eb92a0ab668a37.zip
SONAR-2126: Partially revert previous changes
* Maven can modify source directories during Sonar execution via see MavenPhaseExecutor.
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java b/sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java
index 2bd3866cd16..c0c519f05a8 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java
@@ -32,7 +32,6 @@ import org.sonar.api.resources.Java;
import org.sonar.api.resources.Project;
import org.sonar.api.utils.SonarException;
-import java.io.File;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
@@ -80,12 +79,6 @@ public class MavenProjectBuilder {
DefaultProjectFileSystem fs = new DefaultProjectFileSystem(project);
MavenProject pom = project.getPom();
if (pom != null) {
- for (File dir : fs.resolvePaths(pom.getCompileSourceRoots())) {
- fs.addSourceDir(dir);
- }
- for (File dir : fs.resolvePaths(pom.getTestCompileSourceRoots())) {
- fs.addTestDir(dir);
- }
fs.setBaseDir(pom.getBasedir());
fs.setBuildDir(pom.getBuild().getDirectory());
projectConfiguration.setProperty("project.build.outputDirectory", pom.getBuild().getOutputDirectory());