diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-08-02 13:57:34 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-08-02 13:57:34 +0200 |
commit | aff6df3e136f5ecf3d48b1082bb30c45635323a5 (patch) | |
tree | 3e2c4f5d54b666d6ebcd2fba4e1683618f333329 /sonar-plugin-api/src | |
parent | 83b82ab901cc516b9628560989ef84a326e36e0d (diff) | |
download | sonarqube-aff6df3e136f5ecf3d48b1082bb30c45635323a5.tar.gz sonarqube-aff6df3e136f5ecf3d48b1082bb30c45635323a5.zip |
ONAR-4515 Display all allowed values for sonar.languages
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java index 96dd3701751..47d667db493 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Languages.java @@ -21,6 +21,8 @@ package org.sonar.api.resources; import com.google.common.collect.Maps; import org.apache.commons.lang.ArrayUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.sonar.api.BatchComponent; import org.sonar.api.ServerComponent; @@ -37,14 +39,18 @@ import java.util.Set; */ public class Languages implements BatchComponent, ServerComponent { + private static final Logger LOG = LoggerFactory.getLogger(Languages.class); + private final Map<String, Language> map = Maps.newLinkedHashMap(); /** * Creates a list of languages */ public Languages(Language... languages) { + LOG.debug("Available languages:"); for (Language language : languages) { map.put(language.getKey(), language); + LOG.debug(" * " + language.getName() + " => \"" + language.getKey() + "\""); } } @@ -52,6 +58,7 @@ public class Languages implements BatchComponent, ServerComponent { * No languages are installed */ public Languages() { + LOG.debug("No language available"); } /** |