From b8c352bdb1a8650c1715111e58d59a3b1af40739 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 18 Apr 2014 16:38:04 +0200 Subject: [PATCH] Restore sonar-l10n-en-plugin --- plugins/sonar-l10n-en-plugin/pom.xml | 82 +++++++++++++++++++ .../sonar/plugins/l10n/EnglishPackPlugin.java | 33 ++++++++ .../plugins/l10n/EnglishPackPluginTest.java | 32 ++++++++ pom.xml | 1 + sonar-application/pom.xml | 7 ++ sonar-server/pom.xml | 7 ++ 6 files changed, 162 insertions(+) create mode 100644 plugins/sonar-l10n-en-plugin/pom.xml create mode 100644 plugins/sonar-l10n-en-plugin/src/main/java/org/sonar/plugins/l10n/EnglishPackPlugin.java create mode 100644 plugins/sonar-l10n-en-plugin/src/test/java/org/sonar/plugins/l10n/EnglishPackPluginTest.java diff --git a/plugins/sonar-l10n-en-plugin/pom.xml b/plugins/sonar-l10n-en-plugin/pom.xml new file mode 100644 index 00000000000..58dfa5def13 --- /dev/null +++ b/plugins/sonar-l10n-en-plugin/pom.xml @@ -0,0 +1,82 @@ + + + + + 4.0.0 + + + org.codehaus.sonar + sonar + 4.3-SNAPSHOT + ../.. + + + org.codehaus.sonar.plugins + sonar-l10n-en-plugin + sonar-plugin + SonarQube :: Plugins :: English Pack + + + + org.codehaus.sonar + sonar-plugin-api + provided + + + + junit + junit + test + + + org.easytesting + fest-assert + test + + + + + + + + org.codehaus.mojo + native2ascii-maven-plugin + 1.0-beta-1 + + + + native2ascii + + + + + + org.codehaus.sonar + sonar-packaging-maven-plugin + + English Pack + org.sonar.plugins.l10n.EnglishPackPlugin + + + + + + diff --git a/plugins/sonar-l10n-en-plugin/src/main/java/org/sonar/plugins/l10n/EnglishPackPlugin.java b/plugins/sonar-l10n-en-plugin/src/main/java/org/sonar/plugins/l10n/EnglishPackPlugin.java new file mode 100644 index 00000000000..8409d7253cb --- /dev/null +++ b/plugins/sonar-l10n-en-plugin/src/main/java/org/sonar/plugins/l10n/EnglishPackPlugin.java @@ -0,0 +1,33 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2014 SonarSource + * mailto:contact AT sonarsource DOT com + * + * SonarQube 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. + * + * SonarQube 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 this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.sonar.plugins.l10n; + +import org.sonar.api.SonarPlugin; + +import java.util.Collections; +import java.util.List; + +public final class EnglishPackPlugin extends SonarPlugin { + + public List getExtensions() { + return Collections.emptyList(); + } +} diff --git a/plugins/sonar-l10n-en-plugin/src/test/java/org/sonar/plugins/l10n/EnglishPackPluginTest.java b/plugins/sonar-l10n-en-plugin/src/test/java/org/sonar/plugins/l10n/EnglishPackPluginTest.java new file mode 100644 index 00000000000..b61b2fdc608 --- /dev/null +++ b/plugins/sonar-l10n-en-plugin/src/test/java/org/sonar/plugins/l10n/EnglishPackPluginTest.java @@ -0,0 +1,32 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2014 SonarSource + * mailto:contact AT sonarsource DOT com + * + * SonarQube 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. + * + * SonarQube 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 this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.sonar.plugins.l10n; + +import org.junit.Test; + +import static org.fest.assertions.Assertions.assertThat; + +public class EnglishPackPluginTest { + @Test + public void no_extensions() { + assertThat(new EnglishPackPlugin().getExtensions()).isEmpty(); + } +} diff --git a/pom.xml b/pom.xml index 417e13277f7..d81bfa94e79 100644 --- a/pom.xml +++ b/pom.xml @@ -34,6 +34,7 @@ plugins/sonar-dbcleaner-plugin plugins/sonar-cpd-plugin plugins/sonar-design-plugin + plugins/sonar-l10n-en-plugin plugins/sonar-email-notifications-plugin plugins/sonar-xoo-plugin diff --git a/sonar-application/pom.xml b/sonar-application/pom.xml index 83058a4ead5..4c70ca1d0d4 100644 --- a/sonar-application/pom.xml +++ b/sonar-application/pom.xml @@ -145,6 +145,13 @@ sonar-plugin runtime + + org.codehaus.sonar.plugins + sonar-l10n-en-plugin + ${project.version} + sonar-plugin + runtime + org.codehaus.sonar.plugins sonar-email-notifications-plugin diff --git a/sonar-server/pom.xml b/sonar-server/pom.xml index cda7d4a900b..4a57f7c8bfa 100644 --- a/sonar-server/pom.xml +++ b/sonar-server/pom.xml @@ -496,6 +496,13 @@ sonar-plugin provided + + org.codehaus.sonar.plugins + sonar-l10n-en-plugin + ${project.version} + sonar-plugin + provided + org.codehaus.sonar.plugins sonar-email-notifications-plugin -- 2.39.5