diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-06 17:22:57 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-06 17:22:57 +0000 |
commit | aef2286bf00aca219862aa62ef5dcac4bb9d2e9a (patch) | |
tree | 185ed172e4fd630b1b14c07b072e049fee6c4494 /plugins | |
parent | 4592819b97fd656bd857e319b6c26c008e2f50f2 (diff) | |
download | sonarqube-aef2286bf00aca219862aa62ef5dcac4bb9d2e9a.tar.gz sonarqube-aef2286bf00aca219862aa62ef5dcac4bb9d2e9a.zip |
SONAR-1229 Export/Import a given Sonar quality profile
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleProfileExporter.java | 5 |
1 files changed, 4 insertions, 1 deletions
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"); } /** |