Browse Source

Add property 'sonar.core.serverBaseURL'

tags/2.10
Evgeny Mandrikov 13 years ago
parent
commit
6c6f9750ee

+ 7
- 0
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java View File

@@ -88,6 +88,13 @@ import java.util.List;
description = "A weight is associated to each priority to calculate the Rules Compliance Index.",
project = false,
global = true),
@Property(
key = CoreProperties.SERVER_BASE_URL,
defaultValue = CoreProperties.SERVER_BASE_URL_DEFAULT_VALUE,
name = "Server base URL",
description = "HTTP address of the Sonar server, such as <i>http://yourhost.yourdomain/sonar</i>. This value is used i.e. to create links in emails.",
project = false,
global = true),
@Property(
key = CoreProperties.CORE_FORCE_AUTHENTICATION_PROPERTY,
defaultValue = "" + CoreProperties.CORE_FORCE_AUTHENTICATION_DEFAULT_VALUE,

+ 11
- 0
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java View File

@@ -106,6 +106,17 @@ public interface CoreProperties {
String BATCH_INCLUDE_PLUGINS = "sonar.includePlugins";
String BATCH_EXCLUDE_PLUGINS = "sonar.excludePlugins";

/**
* @since 2.10
*/
String SERVER_BASE_URL = "sonar.core.serverBaseURL";

/**
* @since 2.10
* @see #SERVER_BASE_URL
*/
String SERVER_BASE_URL_DEFAULT_VALUE = "http://localhost:9000";

/* CPD */
String CPD_PLUGIN = "cpd";
String CPD_MINIMUM_TOKENS_PROPERTY = "sonar.cpd.minimumTokens";

Loading…
Cancel
Save