Fork me on GitHub

gettext:dist

Full name:

de.fenvariel:gettext-maven-plugin:2.0.0: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.
User property is: project.build.outputDirectory.
<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.
User property 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.

Optional Parameters

Name Type Since Description
<asSource> boolean - Outputs the result as .java files and not classes if set to true.
Default value is: false.
<extraArguments> String[] - Optional raw command line arguments
<location> Location - set the location comment-mode (full,file,.

Parameter Details

<asSource>

Outputs the result as .java files and not classes if set to true.
  • Type: boolean
  • Required: No
  • Default: false

<extraArguments>

Optional raw command line arguments
  • Type: java.lang.String[]
  • Required: No

<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

<location>

set the location comment-mode (full,file,.
  • Type: de.fenvariel.maven.gettext.Location
  • Required: No

<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
  • User Property: project.build.outputDirectory

<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
  • User Property: 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