forked from rlf/maven-gettext-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial import from the svn on googlecode
- Loading branch information
Showing
12 changed files
with
1,287 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.idea | ||
*.iml | ||
/target | ||
.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
<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> | ||
<groupId>com.googlecode.gettext-commons</groupId> | ||
<artifactId>gettext-maven-plugin</artifactId> | ||
<packaging>maven-plugin</packaging> | ||
<version>1.2.5-SNAPSHOT</version> | ||
<name>Maven Gettext Plugin</name> | ||
<url>http://gettext-commons.googlecode.com/svn/maven2-plugins-site/index.html</url> | ||
<description>Generate messages templates and deploy messages bundles</description> | ||
<licenses> | ||
<license> | ||
<name>GNU Library or Lesser General Public License (LGPL)</name> | ||
<url>http://www.gnu.org/licenses/lgpl.html</url> | ||
</license> | ||
</licenses> | ||
<developers> | ||
<developer> | ||
<id>vanto</id> | ||
<name>Tammo van Lessen</name> | ||
<url>http://www.taval.de</url> | ||
<organization>XNap Commons Team</organization> | ||
<roles> | ||
<role>Project Manager</role> | ||
<role>Developer</role> | ||
<role>Creator</role> | ||
</roles> | ||
</developer> | ||
<developer> | ||
<id>squig</id> | ||
<name>Steffen Pingel</name> | ||
<url>http://steffenpingel.de</url> | ||
<organization>Gettext Commons Team</organization> | ||
<roles> | ||
<role>Developer</role> | ||
</roles> | ||
</developer> | ||
<developer> | ||
<id>bergerfx</id> | ||
<name>Felix Berger</name> | ||
<url>http://github.com/fberger/</url> | ||
<organization>Gettext Commons Team</organization> | ||
<roles> | ||
<role>Developer</role> | ||
<role>Maintainer</role> | ||
</roles> | ||
</developer> | ||
</developers> | ||
<parent> | ||
<groupId>org.sonatype.oss</groupId> | ||
<artifactId>oss-parent</artifactId> | ||
<version>7</version> | ||
</parent> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.maven</groupId> | ||
<artifactId>maven-plugin-api</artifactId> | ||
<version>2.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>3.8.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.plexus</groupId> | ||
<artifactId>plexus-utils</artifactId> | ||
<version>1.0.5</version> | ||
</dependency> | ||
<!-- <dependency> | ||
<groupId>org.codehaus.plexus</groupId> | ||
<artifactId>plexus-utils</artifactId> | ||
<version>1.0.5</version> | ||
</dependency> --> | ||
<!-- <dependency> | ||
<groupId>org.codehaus.plexus</groupId> | ||
<artifactId>plexus-utils</artifactId> | ||
<version>1.0.5</version> | ||
</dependency> --> | ||
<dependency> | ||
<groupId>org.apache.maven.reporting</groupId> | ||
<artifactId>maven-reporting-api</artifactId> | ||
<version>2.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.maven.reporting</groupId> | ||
<artifactId>maven-reporting-impl</artifactId> | ||
<version>2.0</version> | ||
</dependency> | ||
</dependencies> | ||
<scm> | ||
<connection>scm:svn:http://gettext-commons.googlecode.com/svn/maven2-plugins/trunk/</connection> | ||
<developerConnection>scm:svn:https://gettext-commons.googlecode.com/svn/maven2-plugins/trunk/</developerConnection> | ||
<url>http://gettext-commons.googlecode.com/svn/maven2-plugins/trunk/</url> | ||
</scm> | ||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-eclipse-plugin</artifactId> | ||
<configuration> | ||
<projectnatures> | ||
<java.lang.String>org.eclipse.jdt.core.javanature</java.lang.String> | ||
</projectnatures> | ||
<buildcommands> | ||
<java.lang.String>org.eclipse.jdt.core.javabuilder</java.lang.String> | ||
</buildcommands> | ||
<!-- <outputDirectory>/target/eclipse-classes</outputDirectory> --> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>2.14</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<reporting> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-plugin-plugin</artifactId> | ||
<version>3.1</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-changes-plugin</artifactId> | ||
<version>2.9</version> | ||
<reportSets> | ||
<reportSet> | ||
<reports> | ||
<report>changes-report</report> | ||
</reports> | ||
</reportSet> | ||
</reportSets> | ||
</plugin> | ||
</plugins> | ||
</reporting> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<document> | ||
<properties> | ||
<title>Maven Gettext Plugin Changelog</title> | ||
<author email="steffenp@gmx.de">Steffen Pingel</author> | ||
</properties> | ||
<body> | ||
<release version="1.1" date="2007-08-01" description="Subsequent release"> | ||
<action dev="squig" type="fix"> | ||
Write list of sources to file instead of passing them on the | ||
command line to avoid overflow. | ||
</action> | ||
</release> | ||
|
||
<release version="1.0" date="2006-01-08" description="First release"> | ||
<action dev="squig" type=""> | ||
First release of the Maven Gettext Plugin for Maven 2.0. | ||
</action> | ||
</release> | ||
</body> | ||
</document> |
58 changes: 58 additions & 0 deletions
58
src/main/java/org/xnap/commons/maven/gettext/AbstractGettextMojo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package org.xnap.commons.maven.gettext; | ||
|
||
/* | ||
* Copyright 2001-2005 The Apache Software Foundation. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import java.io.File; | ||
|
||
import org.apache.maven.plugin.AbstractMojo; | ||
|
||
/** | ||
* | ||
*/ | ||
public abstract class AbstractGettextMojo | ||
extends AbstractMojo { | ||
|
||
|
||
/** | ||
* The output directory for generated class or properties files. | ||
* @parameter expression="${outputDirectory}" default-value="${project.build.outputDirectory}" | ||
* @required | ||
*/ | ||
protected File outputDirectory; | ||
|
||
/** | ||
* Source directory. This directory is searched recursively for .java files. | ||
* @parameter expression="${sourceDirectory}" default-value="${project.build.sourceDirectory}" | ||
* @required | ||
*/ | ||
protected File sourceDirectory; | ||
|
||
/** | ||
* The output directory for the keys.pot directory for merging .po files. | ||
* @parameter expression="${poDirectory}" default-value="${project.build.sourceDirectory}/main/po" | ||
* @required | ||
*/ | ||
protected File poDirectory; | ||
|
||
/** | ||
* Filename of the .pot file. | ||
* @parameter expression="${keysFile}" default-value="keys.pot" | ||
* @required | ||
*/ | ||
protected String keysFile; | ||
|
||
} |
Oops, something went wrong.