summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-06-21 18:12:51 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-06-21 18:13:16 +0200
commit5b627f797640455ed3fc4a6a075d278ed5dd9372 (patch)
treea79ef7c2d3165c8d60d19036b4ae3456062a09c8 /plugins
parent27b3e4ba0087d9e0b9ba753c887d9553d2e4e8ec (diff)
downloadsonarqube-5b627f797640455ed3fc4a6a075d278ed5dd9372.tar.gz
sonarqube-5b627f797640455ed3fc4a6a075d278ed5dd9372.zip
SONAR-75 Fix /i18n/unknown_keys and remove unused i18n maven module
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-i18n-plugin/pom.xml70
-rw-r--r--plugins/sonar-i18n-plugin/src/main/java/org/sonar/plugins/i18n/I18nWebService.java35
-rw-r--r--plugins/sonar-i18n-plugin/src/main/resources/org/sonar/plugins/i18n/i18n_manager_controller.rb66
3 files changed, 0 insertions, 171 deletions
diff --git a/plugins/sonar-i18n-plugin/pom.xml b/plugins/sonar-i18n-plugin/pom.xml
deleted file mode 100644
index c9390e6571c..00000000000
--- a/plugins/sonar-i18n-plugin/pom.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>sonar</artifactId>
- <groupId>org.codehaus.sonar</groupId>
- <version>2.9-SNAPSHOT</version>
- <relativePath>../..</relativePath>
- </parent>
- <groupId>org.codehaus.sonar.plugins</groupId>
- <artifactId>sonar-i18n-plugin</artifactId>
- <packaging>sonar-plugin</packaging>
- <version>2.9-SNAPSHOT</version>
- <name>Sonar :: Plugins :: I18n</name>
- <description>Sonar I18n plugin</description>
-
- <dependencies>
- <dependency>
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>sonar-plugin-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>sonar-core</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- unit tests -->
- <dependency>
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>sonar-testing-harness</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.sonar</groupId>
- <artifactId>sonar-packaging-maven-plugin</artifactId>
- <version>1.1</version>
- <extensions>true</extensions>
- <configuration>
- <pluginKey>i18n</pluginKey>
- <pluginClass>org.sonar.plugins.i18n.I18nPlugin</pluginClass>
- <pluginName>I18n</pluginName>
- <pluginDescription>
- <![CDATA[Provides components required to internationalize Sonar application and plugins, as well as a default language bundle for the Sonar kernel modules and web application.]]></pluginDescription>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/plugins/sonar-i18n-plugin/src/main/java/org/sonar/plugins/i18n/I18nWebService.java b/plugins/sonar-i18n-plugin/src/main/java/org/sonar/plugins/i18n/I18nWebService.java
deleted file mode 100644
index 3584e67e4c5..00000000000
--- a/plugins/sonar-i18n-plugin/src/main/java/org/sonar/plugins/i18n/I18nWebService.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2008-2011 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.plugins.i18n;
-
-import org.sonar.api.web.AbstractRubyTemplate;
-import org.sonar.api.web.RubyRailsWebservice;
-
-public class I18nWebService extends AbstractRubyTemplate implements RubyRailsWebservice {
-
- public String getId() {
- return "i18n_manager";
- }
-
- @Override
- protected String getTemplatePath() {
- return "i18n_manager_controller.rb";
- }
-}
diff --git a/plugins/sonar-i18n-plugin/src/main/resources/org/sonar/plugins/i18n/i18n_manager_controller.rb b/plugins/sonar-i18n-plugin/src/main/resources/org/sonar/plugins/i18n/i18n_manager_controller.rb
deleted file mode 100644
index e3f7ee50a96..00000000000
--- a/plugins/sonar-i18n-plugin/src/main/resources/org/sonar/plugins/i18n/i18n_manager_controller.rb
+++ /dev/null
@@ -1,66 +0,0 @@
-#
-# Sonar, entreprise quality control tool.
-# Copyright (C) 2008-2011 SonarSource
-# mailto:contact AT sonarsource DOT com
-#
-# Sonar is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 3 of the License, or (at your option) any later version.
-#
-# Sonar is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with Sonar; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
-#
-
-require "json"
-
-class Api::I18nManagerController < Api::ApiController
-
- def index
- render :text => "Use one of the following:<br><ul>" +
- "<li>/api/plugins/i18n_manager/unknown_keys?format=text|json</li>" +
- "</ul>"
- end
-
- # GET /api/plugins/i18n_manager/unknown_keys
- # Examples :
- # curl -v http://localhost:9000/api/plugins/i18n_manager -u admin:admin
- #
-
- def unknown_keys
- begin
- output = ""
- properties = i18n_manager.unknown_keys
-
- properties.keys.sort.each {|key| output += "#{key}=#{properties[key]}\n" }
-
- output = "# No unknown keys" if output.empty?
-
- respond_to do |format|
- format.json { render :json => JSON(properties) }
- format.xml { render :xml => xml_not_supported }
- format.text { render :text => output }
- end
-
- rescue ApiException => e
- render_error(e.msg, e.code)
-
- rescue Exception => e
- logger.error("Fails to execute #{request.url} : #{e.message}")
- render_error(e.message)
- end
- end
-
- private
-
- def i18n_manager
- java_facade.getComponentByClassname('i18n', 'org.sonar.plugins.i18n.I18nManager')
- end
-
-end \ No newline at end of file