]> source.dussan.org Git - sonarqube.git/commitdiff
Add property 'sonar.core.serverBaseURL'
authorEvgeny Mandrikov <mandrikov@gmail.com>
Fri, 22 Jul 2011 11:53:24 +0000 (15:53 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Fri, 22 Jul 2011 12:03:24 +0000 (16:03 +0400)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java
sonar-plugin-api/src/main/java/org/sonar/api/CoreProperties.java

index 24c8d838d8afedaf3fea53a6778745b825617484..33714fbf456559f4a3ff2a00599324c569f817cb 100644 (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,
index 01c652308cb6b9b1f3c67ae12fe930f64adb6f28..60394906afa01c4d302922f509771cb88909be1a 100644 (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";