aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-03-20 22:46:03 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-03-20 22:47:41 +0100
commit2b43df61e8ab7ded55f565eb7f43528ece3d66f3 (patch)
treec45ac8c139e9ef2dc783fe5aafa70e1f4060550e /sonar-server/src/main/java
parent69515943c83b24c8dbefefe7420bab6d5de4c81f (diff)
downloadsonarqube-2b43df61e8ab7ded55f565eb7f43528ece3d66f3.tar.gz
sonarqube-2b43df61e8ab7ded55f565eb7f43528ece3d66f3.zip
SONAR-3344 Display metadata of SonarSource licenses
Diffstat (limited to 'sonar-server/src/main/java')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java5
1 files changed, 5 insertions, 0 deletions
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() {