diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-23 19:25:12 +0300 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-23 19:25:12 +0300 |
commit | e9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13 (patch) | |
tree | 702081e781a37bb2d9a9de2e72d39efdb7b23fb1 /sonar-batch/src | |
parent | 65dc85cf661879f9289b93e1410a93a1a113a1a8 (diff) | |
download | sonarqube-e9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13.tar.gz sonarqube-e9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13.zip |
SONAR-2126: Change api to work with project file system
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java | 2 |
1 files changed, 2 insertions, 0 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 e05a557bbee..0145b07d7a9 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java +++ b/sonar-batch/src/main/java/org/sonar/batch/MavenProjectBuilder.java @@ -88,6 +88,8 @@ public class MavenProjectBuilder { } fs.setBaseDir(pom.getBasedir()); fs.setBuildDir(pom.getBuild().getDirectory()); + projectConfiguration.setProperty("project.build.outputDirectory", pom.getBuild().getOutputDirectory()); + projectConfiguration.setProperty("project.reporting.outputDirectory", pom.getReporting().getOutputDirectory()); projectConfiguration.setProperty("sonar.java.sourceVersion", MavenUtils.getJavaSourceVersion(pom)); projectConfiguration.setProperty("sonar.java.targetVersion", MavenUtils.getJavaVersion(pom)); } |