diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-04-18 16:38:04 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-04-18 16:38:04 +0200 |
commit | b8c352bdb1a8650c1715111e58d59a3b1af40739 (patch) | |
tree | 8bd8efe9ee7231328116e880789518a8940715c2 | |
parent | 8a4d9708024cba8a0089c39f041ac145d07cbc40 (diff) | |
download | sonarqube-b8c352bdb1a8650c1715111e58d59a3b1af40739.tar.gz sonarqube-b8c352bdb1a8650c1715111e58d59a3b1af40739.zip |
Restore sonar-l10n-en-plugin
-rw-r--r-- | plugins/sonar-l10n-en-plugin/pom.xml | 82 | ||||
-rw-r--r-- | plugins/sonar-l10n-en-plugin/src/main/java/org/sonar/plugins/l10n/EnglishPackPlugin.java | 33 | ||||
-rw-r--r-- | plugins/sonar-l10n-en-plugin/src/test/java/org/sonar/plugins/l10n/EnglishPackPluginTest.java | 32 | ||||
-rw-r--r-- | pom.xml | 1 | ||||
-rw-r--r-- | sonar-application/pom.xml | 7 | ||||
-rw-r--r-- | sonar-server/pom.xml | 7 |
6 files changed, 162 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ 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. + --> + +<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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.codehaus.sonar</groupId> + <artifactId>sonar</artifactId> + <version>4.3-SNAPSHOT</version> + <relativePath>../..</relativePath> + </parent> + + <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-l10n-en-plugin</artifactId> + <packaging>sonar-plugin</packaging> + <name>SonarQube :: Plugins :: English Pack</name> + + <dependencies> + <dependency> + <groupId>org.codehaus.sonar</groupId> + <artifactId>sonar-plugin-api</artifactId> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.easytesting</groupId> + <artifactId>fest-assert</artifactId> + <scope>test</scope> + </dependency> + + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>native2ascii-maven-plugin</artifactId> + <version>1.0-beta-1</version> + <executions> + <execution> + <goals> + <goal>native2ascii</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.sonar</groupId> + <artifactId>sonar-packaging-maven-plugin</artifactId> + <configuration> + <pluginName>English Pack</pluginName> + <pluginClass>org.sonar.plugins.l10n.EnglishPackPlugin</pluginClass> + <pluginDescription><![CDATA[Language pack for English]]></pluginDescription> + </configuration> + </plugin> + </plugins> + </build> +</project> 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(); + } +} @@ -34,6 +34,7 @@ <module>plugins/sonar-dbcleaner-plugin</module> <module>plugins/sonar-cpd-plugin</module> <module>plugins/sonar-design-plugin</module> + <module>plugins/sonar-l10n-en-plugin</module> <module>plugins/sonar-email-notifications-plugin</module> <module>plugins/sonar-xoo-plugin</module> </modules> 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 @@ -147,6 +147,13 @@ </dependency> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-l10n-en-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-email-notifications-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> 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 @@ -498,6 +498,13 @@ </dependency> <dependency> <groupId>org.codehaus.sonar.plugins</groupId> + <artifactId>sonar-l10n-en-plugin</artifactId> + <version>${project.version}</version> + <type>sonar-plugin</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.codehaus.sonar.plugins</groupId> <artifactId>sonar-email-notifications-plugin</artifactId> <version>${project.version}</version> <type>sonar-plugin</type> |