aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-01-23 20:58:49 +0300
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-01-23 20:58:49 +0300
commitc65905d4c3bc59739032032db56e4e993fe57b37 (patch)
treeea139bd7d16c15ca855f0655077c41f86d036ce6 /sonar-plugin-api/src/test/java
parente9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13 (diff)
downloadsonarqube-c65905d4c3bc59739032032db56e4e993fe57b37.tar.gz
sonarqube-c65905d4c3bc59739032032db56e4e993fe57b37.zip
SONAR-2126: Change api to work with project file system
Diffstat (limited to 'sonar-plugin-api/src/test/java')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/test/MavenTestUtils.java4
1 files changed, 3 insertions, 1 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 a681327409e..3afd4569eb8 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
@@ -76,7 +76,9 @@ public final class MavenTestUtils {
fs.addTestDir(dir);
}
project.getConfiguration().setProperty("project.build.outputDirectory", pom.getBuild().getOutputDirectory());
- project.getConfiguration().setProperty("project.reporting.outputDirectory", pom.getReporting().getOutputDirectory());
+ if (pom.getReporting() != null) {
+ project.getConfiguration().setProperty("project.reporting.outputDirectory", pom.getReporting().getOutputDirectory());
+ }
fs.setBaseDir(project.getPom().getBasedir());
fs.setBuildDir(project.getPom().getBuild().getDirectory());
return project;