aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-07-07 11:48:04 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-07-07 11:48:04 +0200
commit93570072a1c3f1e4e90a20d2bfbaefae60528376 (patch)
tree2ad86299fef06c6beaed69e5b76d4010977af009 /sonar-plugin-api
parent83f27436880ed453c4c367e8c39625e09982a624 (diff)
downloadsonarqube-93570072a1c3f1e4e90a20d2bfbaefae60528376.tar.gz
sonarqube-93570072a1c3f1e4e90a20d2bfbaefae60528376.zip
SONAR-2469 extensions annotated with @InstantiationStrategy(BATCH) should access project configuration
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java
index e824d4e0a87..bc0e9163fcf 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/bootstrap/ProjectDefinition.java
@@ -87,6 +87,11 @@ public final class ProjectDefinition implements BatchComponent {
return properties;
}
+ public ProjectDefinition setProperty(String key, String value) {
+ properties.setProperty(key, value);
+ return this;
+ }
+
public ProjectDefinition setKey(String key) {
properties.setProperty(CoreProperties.PROJECT_KEY_PROPERTY, key);
return this;