diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-23 20:58:49 +0300 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-01-23 20:58:49 +0300 |
commit | c65905d4c3bc59739032032db56e4e993fe57b37 (patch) | |
tree | ea139bd7d16c15ca855f0655077c41f86d036ce6 /sonar-plugin-api/src/test/java | |
parent | e9990905e6c5dfd0910a3800f5e3bf5d3dc7ae13 (diff) | |
download | sonarqube-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.java | 4 |
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; |