From 2b43df61e8ab7ded55f565eb7f43528ece3d66f3 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 20 Mar 2012 22:46:03 +0100 Subject: SONAR-3344 Display metadata of SonarSource licenses --- sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sonar-server/src/main/java') diff --git a/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java b/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java index 82f899f3e22..76517e30df8 100644 --- a/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java +++ b/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java @@ -21,6 +21,7 @@ package org.sonar.server.ui; import org.apache.commons.configuration.Configuration; import org.slf4j.LoggerFactory; +import org.sonar.api.config.License; import org.sonar.api.config.PropertyDefinitions; import org.sonar.api.config.Settings; import org.sonar.api.platform.ComponentContainer; @@ -410,6 +411,10 @@ public final class JRubyFacade { public String generateRandomSecretKey() { return getContainer().getComponentByType(Settings.class).getEncryption().generateRandomSecretKey(); } + + public License parseLicense(String base64) { + return License.readBase64(base64); + } public ReviewsNotificationManager getReviewsNotificationManager() { -- cgit v1.2.3