diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-14 23:54:44 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-14 23:58:01 +0100 |
commit | c8ca6faa8530fc6e1b42422b48500c82d6705c80 (patch) | |
tree | 4f98846b4e8df6b0702d470fdee32ed0fbdebd9d /plugins/sonar-findbugs-plugin/src | |
parent | f0e02076c17318fed53983bbff3bce5d820c06b1 (diff) | |
download | sonarqube-c8ca6faa8530fc6e1b42422b48500c82d6705c80.tar.gz sonarqube-c8ca6faa8530fc6e1b42422b48500c82d6705c80.zip |
SONAR-1378 Add the ability to specify a "type" when defining a plugin property
Diffstat (limited to 'plugins/sonar-findbugs-plugin/src')
-rw-r--r-- | plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsPlugin.java | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsPlugin.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsPlugin.java index 0debfdac798..115feb801d2 100644 --- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsPlugin.java +++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsPlugin.java @@ -25,25 +25,30 @@ import java.util.ArrayList; import java.util.List; @Properties({ - @Property( - key = CoreProperties.FINDBUGS_EFFORT_PROPERTY, - defaultValue = CoreProperties.FINDBUGS_EFFORT_DEFAULT_VALUE, - name = "Effort", - description = "Effort of the bug finders. Valid values are Min, Default and Max. Setting 'Max' increases precision but also increases " + - "memory consumption.", - project = true, module = true, global = true), - @Property( - key = CoreProperties.FINDBUGS_TIMEOUT_PROPERTY, - defaultValue = CoreProperties.FINDBUGS_TIMEOUT_DEFAULT_VALUE + "", - name = "Timeout", - description = "Specifies the amount of time, in milliseconds, that FindBugs may run before it is assumed to be hung and is terminated. " + - "The default is 600,000 milliseconds, which is ten minutes.", - project = true, module = true, global = true), - @Property( - key = FindbugsConstants.EXCLUDES_FILTERS_PROPERTY, - name = "Excludes Filters", - description = "Paths to findbugs filter-files with exclusions (comma-separated).", - project = true, module = true, global = true) }) + @Property( + key = CoreProperties.FINDBUGS_EFFORT_PROPERTY, + defaultValue = CoreProperties.FINDBUGS_EFFORT_DEFAULT_VALUE, + name = "Effort", + description = "Effort of the bug finders. Valid values are Min, Default and Max. Setting 'Max' increases precision but also increases " + + "memory consumption.", + project = true, + module = true, + global = true), + @Property( + key = CoreProperties.FINDBUGS_TIMEOUT_PROPERTY, + defaultValue = CoreProperties.FINDBUGS_TIMEOUT_DEFAULT_VALUE + "", + name = "Timeout", + description = "Specifies the amount of time, in milliseconds, that FindBugs may run before it is assumed to be hung and is terminated. " + + "The default is 600,000 milliseconds, which is ten minutes.", + project = true, + module = true, + global = true, + type = Property.Type.INTEGER), + @Property( + key = FindbugsConstants.EXCLUDES_FILTERS_PROPERTY, + name = "Excludes Filters", + description = "Paths to findbugs filter-files with exclusions (comma-separated).", + project = true, module = true, global = true)}) public class FindbugsPlugin extends SonarPlugin { public List<Class<? extends Extension>> getExtensions() { |