gettext:dist

Full name:

ninja.leaping:gettext-maven-plugin:1.2.5-SNAPSHOT:dist

Description:

Generates ressource bundles.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
javaVersion String - Java version. Can be "1" or "2".
Default value is: 2.
keysFile String - Filename of the .pot file.
Default value is: keys.pot.
msgcatCmd String - The msgcat command.
Default value is: msgcat.
msgfmtCmd String - The msgfmt command.
Default value is: msgfmt.
outputDirectory File - The output directory for generated class or properties files.
Default value is: ${project.build.directory}/generated-sources/gettext.
outputFormat String - Output format, can be "class" or "properties".
Default value is: class.
poDirectory File - The output directory for the keys.pot directory for merging .po files.
Default value is: ${basedir}/src/main/po.
sourceDirectory File - Source directory. This directory is searched recursively for .java files.
Default value is: ${project.build.sourceDirectory}.
sourceLocale String - The locale of the messages in the source code.
Default value is: en.
targetBundle String - The package and file name of the generated class or properties files.

Parameter Details

javaVersion:

Java version. Can be "1" or "2".
  • Type: java.lang.String
  • Required: Yes
  • Default: 2

keysFile:

Filename of the .pot file.
  • Type: java.lang.String
  • Required: Yes
  • Default: keys.pot

msgcatCmd:

The msgcat command.
  • Type: java.lang.String
  • Required: Yes
  • Default: msgcat

msgfmtCmd:

The msgfmt command.
  • Type: java.lang.String
  • Required: Yes
  • Default: msgfmt

outputDirectory:

The output directory for generated class or properties files.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}/generated-sources/gettext

outputFormat:

Output format, can be "class" or "properties".
  • Type: java.lang.String
  • Required: Yes
  • Default: class

poDirectory:

The output directory for the keys.pot directory for merging .po files.
  • Type: java.io.File
  • Required: Yes
  • Default: ${basedir}/src/main/po

sourceDirectory:

Source directory. This directory is searched recursively for .java files.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.sourceDirectory}

sourceLocale:

The locale of the messages in the source code.
  • Type: java.lang.String
  • Required: Yes
  • Default: en

targetBundle:

The package and file name of the generated class or properties files.
  • Type: java.lang.String
  • Required: Yes