aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/main/java/org/sonar/batch/bootstrapper
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-06-07 11:07:25 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-06-07 11:07:43 +0200
commitef65872944bde77d948cf6bd0185acdbd36d28c4 (patch)
tree2e50b95ebe04189f53492adfff39be67b57dd58e /sonar-batch/src/main/java/org/sonar/batch/bootstrapper
parent7026f003b50c1b9cc78ec03c4d92662b6ea885f5 (diff)
downloadsonarqube-ef65872944bde77d948cf6bd0185acdbd36d28c4.tar.gz
sonarqube-ef65872944bde77d948cf6bd0185acdbd36d28c4.zip
Do not allow to change ProjectDefinition#properties
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrapper')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrapper/ProjectDefinition.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/ProjectDefinition.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/ProjectDefinition.java
index 0c59c799935..71f3861f941 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/ProjectDefinition.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrapper/ProjectDefinition.java
@@ -42,10 +42,9 @@ public class ProjectDefinition {
* @param properties project properties
*/
public ProjectDefinition(File baseDir, File workDir, Properties properties) {
- target = org.sonar.api.batch.bootstrap.ProjectDefinition.create()
+ target = org.sonar.api.batch.bootstrap.ProjectDefinition.create(properties)
.setBaseDir(baseDir)
- .setWorkDir(workDir)
- .setProperties(properties);
+ .setWorkDir(workDir);
}
public File getBaseDir() {