diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-14 17:36:29 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-11-16 10:06:50 +0100 |
commit | 255c1cfe5b994d84a50054727a6f901093a1e037 (patch) | |
tree | bd5aeabf1ceb7a6526b7cc901bcf5c98d062bbdd /sonar-core/src | |
parent | 71d4a992b83b41c2b4fa6dc8456584ee8c3324ef (diff) | |
download | sonarqube-255c1cfe5b994d84a50054727a6f901093a1e037.tar.gz sonarqube-255c1cfe5b994d84a50054727a6f901093a1e037.zip |
SONAR-8385 Provide an option to extend the landing page
Diffstat (limited to 'sonar-core/src')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java | 7 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java index 82c74404660..454f0842c74 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java +++ b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java @@ -197,6 +197,13 @@ public class CorePropertyDefinitions { .category(CoreProperties.CATEGORY_GENERAL) .subCategory(CoreProperties.SUBCATEGORY_LOOKNFEEL) .build(), + PropertyDefinition.builder("sonar.lf.landingText") + .name("Landing page text") + .description("Optional text that is display on the landing page. Supports html.") + .category(CoreProperties.CATEGORY_GENERAL) + .subCategory(CoreProperties.SUBCATEGORY_LOOKNFEEL) + .type(PropertyType.TEXT) + .build(), // ISSUES PropertyDefinition.builder(CoreProperties.DEFAULT_ISSUE_ASSIGNEE) diff --git a/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java b/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java index bf9d2501497..470cc2f2ed8 100644 --- a/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java +++ b/sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java @@ -35,7 +35,7 @@ public class CorePropertyDefinitionsTest { @Test public void all() { List<PropertyDefinition> defs = CorePropertyDefinitions.all(); - assertThat(defs).hasSize(64); + assertThat(defs).hasSize(65); } @Test |