summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-01-23 19:25:12 +0300
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-01-23 19:25:12 +0300
commite9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13 (patch)
tree702081e781a37bb2d9a9de2e72d39efdb7b23fb1 /sonar-plugin-api
parent65dc85cf661879f9289b93e1410a93a1a113a1a8 (diff)
downloadsonarqube-e9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13.tar.gz
sonarqube-e9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13.zip
SONAR-2126: Change api to work with project file system
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/test/MavenTestUtils.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/test/MavenTestUtils.java b/sonar-plugin-api/src/test/java/org/sonar/api/test/MavenTestUtils.java
index 7b4d9dcf186..a681327409e 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/test/MavenTestUtils.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/test/MavenTestUtils.java
@@ -75,6 +75,8 @@ public final class MavenTestUtils {
for (File dir : fs.resolvePaths(project.getPom().getTestCompileSourceRoots())) {
fs.addTestDir(dir);
}
+ project.getConfiguration().setProperty("project.build.outputDirectory", pom.getBuild().getOutputDirectory());
+ project.getConfiguration().setProperty("project.reporting.outputDirectory", pom.getReporting().getOutputDirectory());
fs.setBaseDir(project.getPom().getBasedir());
fs.setBuildDir(project.getPom().getBuild().getDirectory());
return project;