From aef2286bf00aca219862aa62ef5dcac4bb9d2e9a Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Mon, 6 Sep 2010 17:22:57 +0000 Subject: SONAR-1229 Export/Import a given Sonar quality profile --- .../java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java index 49b56a5446c..883013caf3a 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java @@ -27,6 +27,7 @@ import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; import org.sonar.api.profiles.ProfileExporter; import org.sonar.api.profiles.RulesProfile; +import org.sonar.api.resources.Java; import org.sonar.api.rules.ActiveRule; import org.sonar.api.rules.ActiveRuleParam; import org.sonar.api.rules.RuleParam; @@ -42,8 +43,10 @@ public class CheckstyleProfileExporter extends ProfileExporter { private Configuration conf; public CheckstyleProfileExporter(Configuration conf) { + super(CheckstyleConstants.REPOSITORY_KEY, CheckstyleConstants.PLUGIN_NAME); this.conf = conf; - setSupportedRepositories(CheckstyleConstants.REPOSITORY_KEY); + setSupportedLanguages(Java.KEY); + setMimeType("application/xml"); } /** -- cgit v1.2.3