diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-07 11:48:04 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-07 11:48:04 +0200 |
commit | 93570072a1c3f1e4e90a20d2bfbaefae60528376 (patch) | |
tree | 2ad86299fef06c6beaed69e5b76d4010977af009 /sonar-plugin-api | |
parent | 83f27436880ed453c4c367e8c39625e09982a624 (diff) | |
download | sonarqube-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.java | 5 |
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; |