From 11c70e21048491ba9f553c88128bd923720d927a Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 16 Aug 2011 18:07:03 +0200 Subject: [PATCH] SONAR-2694 do not use @Property.category on core plugins yet --- .../org/sonar/plugins/core/CorePlugin.java | 57 ++++++------------- 1 file changed, 17 insertions(+), 40 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java index db162da7c70..b78f3822cb4 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java @@ -48,8 +48,7 @@ import java.util.List; key = CoreProperties.ORGANIZATION, name = "Organization", description = "Identify your installation. Required to generate the server key and to benefit from licensed plugins. Server must be restarted for the change to take effect.", - global = true, - category = "General" + global = true ), @Property( key = CoreProperties.SERVER_BASE_URL, @@ -57,16 +56,14 @@ import java.util.List; name = "Server base URL", description = "HTTP address of the Sonar server, such as http://yourhost.yourdomain/sonar. This value is used i.e. to create links in emails and to generate server key.", project = false, - global = true, - category = "General"), + global = true), @Property( key = CoreProperties.CORE_COVERAGE_PLUGIN_PROPERTY, defaultValue = "cobertura", name = "Code coverage plugin", description = "Key of the code coverage plugin to use.", project = true, - global = true, - category = "Coverage"), + global = true), @Property( key = CoreProperties.CORE_IMPORT_SOURCES_PROPERTY, defaultValue = "" + CoreProperties.CORE_IMPORT_SOURCES_DEFAULT_VALUE, @@ -74,16 +71,14 @@ import java.util.List; description = "Set to false if sources should not be displayed, e.g. for security reasons.", project = true, module = true, - global = true, - category = "General"), + global = true), @Property( key = CoreProperties.CORE_TENDENCY_DEPTH_PROPERTY, defaultValue = "" + CoreProperties.CORE_TENDENCY_DEPTH_DEFAULT_VALUE, name = "Tendency period", description = TendencyDecorator.PROP_DAYS_DESCRIPTION, project = false, - global = true, - category = "General"), + global = true), @Property( key = CoreProperties.SKIP_TENDENCIES_PROPERTY, defaultValue = "" + CoreProperties.SKIP_TENDENCIES_DEFAULT_VALUE, @@ -91,56 +86,48 @@ import java.util.List; description = "Skip calculation of measure tendencies", project = true, module = false, - global = true, - category = "General"), + global = true), @Property( key = CoreProperties.CORE_SKIPPED_MODULES_PROPERTY, name = "Exclude modules", description = "Maven artifact ids of modules to exclude (comma-separated).", project = true, - global = false, - category = "General"), + global = false), @Property( key = CoreProperties.CORE_RULE_WEIGHTS_PROPERTY, defaultValue = CoreProperties.CORE_RULE_WEIGHTS_DEFAULT_VALUE, name = "Rules weight", description = "A weight is associated to each priority to calculate the Rules Compliance Index.", project = false, - global = true, - category = "General"), + global = true), @Property( key = CoreProperties.CORE_FORCE_AUTHENTICATION_PROPERTY, defaultValue = "" + CoreProperties.CORE_FORCE_AUTHENTICATION_DEFAULT_VALUE, name = "Force user authentication", description = "Forcing user authentication stops un-logged users to access Sonar.", project = false, - global = true, - category = "General"), + global = true), @Property( key = CoreProperties.CORE_ALLOW_USERS_TO_SIGNUP_PROPERTY, defaultValue = "" + CoreProperties.CORE_ALLOW_USERS_TO_SIGNUP_DEAULT_VALUE, name = "Allow users to sign up online", description = "Users can sign up online.", project = false, - global = true, - category = "General"), + global = true), @Property( key = CoreProperties.CORE_DEFAULT_GROUP, defaultValue = CoreProperties.CORE_DEFAULT_GROUP_DEFAULT_VALUE, name = "Default user group", description = "Any new users will automatically join this group.", project = false, - global = true, - category = "General" - ), + global = true), @Property( key = CoreProperties.CORE_VIOLATION_LOCALE_PROPERTY, defaultValue = "en", name = "Locale used for violation messages", description = "Locale to be used when generating violation messages. It's up to each rule engine to support this global internationalization property", project = true, - global = true, - category = "General"), + global = true), @Property( key = "sonar.timemachine.period1", name = "Period 1", @@ -149,27 +136,21 @@ import java.util.List; "compare to previous analysis
  • A version, for example 1.2
  • ", project = false, global = true, - defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_1, - category = "Time Machine" - ), + defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_1), @Property( key = "sonar.timemachine.period2", name = "Period 2", description = "See the property 'Period 1'", project = false, global = true, - defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_2, - category = "Time Machine" - ), + defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_2), @Property( key = "sonar.timemachine.period3", name = "Period 3", description = "See the property 'Period 1'", project = false, global = true, - defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_3, - category = "Time Machine" - ), + defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_3), @Property( key = "sonar.timemachine.period4", name = "Period 4", @@ -178,18 +159,14 @@ import java.util.List; "for example 2010-12-25
  • 'previous_analysis' to compare to previous analysis
  • A version, for example 1.2
  • ", project = true, global = false, - defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_4, - category = "Time Machine" - ), + defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_4), @Property( key = "sonar.timemachine.period5", name = "Period 5", description = "See the property 'Period 4'", project = true, global = false, - defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_5, - category = "Time Machine" - ) + defaultValue = CoreProperties.TIMEMACHINE_DEFAULT_PERIOD_5) }) public class CorePlugin extends SonarPlugin { -- 2.39.5