i18n:gen
Nom complet :
org.nuiton.i18n:i18n-maven-plugin:4.1:gen
Description :
Merge new generated i18n bundles with older existing ones.
Attributs :
- Exige un projet Maven pour être exécuté.
- The goal is not marked as thread-safe and thus does not support parallel builds.
- Depuis la version :
3.3. - S'associe par défaut dans la phase du cycle de vie :
generate-resources. - Appelle l'exécution du goal de ce plugin
getavant de s'exécuter.
Paramètres requis
| Nom | Type | Depuis | Description |
|---|---|---|---|
<bundles> |
String |
3.3 |
Locales to treate, separated by comma. Example :
fr_FR,en_GB Valeur par défaut : fr_FR,en_GB.Propriété utilisateur : i18n.bundles. |
<checkBundle> |
boolean |
1.0.0 |
A flag to check that bundles are complete (no missing i18n
translations). Valeur par défaut : true.Propriété utilisateur : i18n.checkBundle. |
<encoding> |
String |
3.3 |
Encoding used to load and store properties. Valeur par défaut : ${project.build.sourceEncoding}.Propriété utilisateur : i18n.encoding. |
<out> |
File |
3.3 |
Directory where to generate i18n files. Valeur par défaut : ${basedir}/target/generated-sources/i18n.Propriété utilisateur : i18n.out. |
<showEmpty> |
boolean |
1.0.0 |
A flag to show missing i18n translation. Note : Need the
checkBundle to be activated).Valeur par défaut : false.Propriété utilisateur : i18n.showEmpty. |
<src> |
File |
3.3 |
Directory where to find project i18n files. Valeur par défaut : ${basedir}/src/main/resources/i18n.Propriété utilisateur : i18n.src. |
Paramètres optionnels
| Nom | Type | Depuis | Description |
|---|---|---|---|
<failsIfAnyKeyMissingInBundle> |
boolean |
3.5.1 |
A flag to make the build fails if there is some missing keys.
Note : This parameter should be used in a release profile to
ensure bundles are complete. Valeur par défaut : false.Propriété utilisateur : i18n.failsIfAnyKeyMissingInBundle. |
<failsIfAnyKeyMissingValue> |
boolean |
3.5.1 |
A flag to make the build fails if there is some missing key values.
Note : This parameter should be used in a release profile to
ensure bundles are complete. Valeur par défaut : false.Propriété utilisateur : i18n.failsIfAnyKeyMissingValue. |
<failsIfWarning> |
boolean |
3.3 |
(aucune description) Valeur par défaut : false.Propriété utilisateur : i18n.failsIfWarning. |
<genSrc> |
boolean |
3.3 |
To update generated files to user i18n files. Note : By
default, this is active, in order to have a project uptodate with
last i18n bundles detected. Valeur par défaut : true.Propriété utilisateur : i18n.genSrc. |
<keepBackup> |
boolean |
3.3 |
To keep a backup of old i18n bundles (suffiex by a ~).
Note: By default, this property is not active.Valeur par défaut : false.Propriété utilisateur : i18n.keepBackup. |
<keepGetters> |
boolean |
3.3 |
To keep generated getter files. Note: By default, this
property is not active. Valeur par défaut : false.Propriété utilisateur : i18n.keepGetters. |
<silent> |
boolean |
1.0.0-rc-5 |
Silent flag to see only errors in console. Valeur par défaut : false.Propriété utilisateur : i18n.silent. |
<strictMode> |
boolean |
3.3 |
Strict mode to only keep in user i18n detected i18n keys and remove
obsolete keys. Note : By default not active. Use this with
care since it can delete keys. Moreover if this flag is activated,
then all files will be parsed. Valeur par défaut : false.Propriété utilisateur : i18n.strictMode. |
<verbose> |
boolean |
3.3 |
Verbose flag. Note : if not setted, we used the
maven.verbose property.Valeur par défaut : ${maven.verbose}.Propriété utilisateur : i18n.verbose. |
Détails des paramètres
<bundles>
Locales to treate, separated by comma. Example :
fr_FR,en_GB
- Type :
java.lang.String - Depuis :
3.3 - Exigé :
Oui - Propriété utilisateur :
i18n.bundles - Défaut :
fr_FR,en_GB
<checkBundle>
A flag to check that bundles are complete (no missing i18n
translations).
- Type :
boolean - Depuis :
1.0.0 - Exigé :
Oui - Propriété utilisateur :
i18n.checkBundle - Défaut :
true
<encoding>
Encoding used to load and store properties.
- Type :
java.lang.String - Depuis :
3.3 - Exigé :
Oui - Propriété utilisateur :
i18n.encoding - Défaut :
${project.build.sourceEncoding}
<failsIfAnyKeyMissingInBundle>
A flag to make the build fails if there is some missing keys.
Note : This parameter should be used in a release profile to
ensure bundles are complete.
- Type :
boolean - Depuis :
3.5.1 - Exigé :
Non - Propriété utilisateur :
i18n.failsIfAnyKeyMissingInBundle - Défaut :
false
<failsIfAnyKeyMissingValue>
A flag to make the build fails if there is some missing key values.
Note : This parameter should be used in a release profile to
ensure bundles are complete.
- Type :
boolean - Depuis :
3.5.1 - Exigé :
Non - Propriété utilisateur :
i18n.failsIfAnyKeyMissingValue - Défaut :
false
<failsIfWarning>
(aucune description)
- Type :
boolean - Depuis :
3.3 - Exigé :
Non - Propriété utilisateur :
i18n.failsIfWarning - Défaut :
false
<genSrc>
To update generated files to user i18n files. Note : By
default, this is active, in order to have a project uptodate with
last i18n bundles detected.
- Type :
boolean - Depuis :
3.3 - Exigé :
Non - Propriété utilisateur :
i18n.genSrc - Défaut :
true
<keepBackup>
To keep a backup of old i18n bundles (suffiex by a
~).
Note: By default, this property is not active.- Type :
boolean - Depuis :
3.3 - Exigé :
Non - Propriété utilisateur :
i18n.keepBackup - Défaut :
false
<keepGetters>
To keep generated getter files. Note: By default, this
property is not active.
- Type :
boolean - Depuis :
3.3 - Exigé :
Non - Propriété utilisateur :
i18n.keepGetters - Défaut :
false
<out>
Directory where to generate i18n files.
- Type :
java.io.File - Depuis :
3.3 - Exigé :
Oui - Propriété utilisateur :
i18n.out - Défaut :
${basedir}/target/generated-sources/i18n
<showEmpty>
A flag to show missing i18n translation. Note : Need the
checkBundle to be activated).- Type :
boolean - Depuis :
1.0.0 - Exigé :
Oui - Propriété utilisateur :
i18n.showEmpty - Défaut :
false
<silent>
Silent flag to see only errors in console.
- Type :
boolean - Depuis :
1.0.0-rc-5 - Exigé :
Non - Propriété utilisateur :
i18n.silent - Défaut :
false
<src>
Directory where to find project i18n files.
- Type :
java.io.File - Depuis :
3.3 - Exigé :
Oui - Propriété utilisateur :
i18n.src - Défaut :
${basedir}/src/main/resources/i18n
<strictMode>
Strict mode to only keep in user i18n detected i18n keys and remove
obsolete keys. Note : By default not active. Use this with
care since it can delete keys. Moreover if this flag is activated,
then all files will be parsed.
- Type :
boolean - Depuis :
3.3 - Exigé :
Non - Propriété utilisateur :
i18n.strictMode - Défaut :
false
<verbose>
Verbose flag. Note : if not setted, we used the
maven.verbose property.- Type :
boolean - Depuis :
3.3 - Exigé :
Non - Propriété utilisateur :
i18n.verbose - Défaut :
${maven.verbose}

