i18n:split-csv-bundle
Full name:
org.nuiton.i18n:i18n-maven-plugin:4.1:split-csv-bundle
Description:
To split a previously csv i18n file into simple i18n bundles for
the locales defined in
locales
. The order of
locales
will be used to extract for each locale i18n
bundle (means the order defined in the csv file is not used). Make
sure to use exactly the same order. Created on 7/26/14.Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
runtime
. - The goal is not marked as thread-safe and thus does not support parallel builds.
- Since version:
3.3
. - Binds by default to the lifecycle phase:
generate-resources
.
Required Parameters
Name | Type | Since | Description |
---|---|---|---|
<bundleCsvFile> |
File |
3.3 |
Location of the csv file to split. User property is: i18n.bundleCsvFile . |
<bundleOutputDir> |
File |
3.3 |
Root directory where to generate aggregated bundles (this directory
will be added as resources of the project). Default value is: ${project.build.directory} .User property is: i18n.bundleOutputDir . |
<bundleOutputName> |
String |
3.3 |
Name of the bundle to generate. Default value is: ${project.artifactId}-i18n .User property is: i18n.bundleOutputName . |
<bundles> |
String |
3.3 |
Locales to treate, separated by comma. Example :
fr_FR,en_GB Default value is: fr_FR,en_GB .User property is: i18n.bundles . |
<encoding> |
String |
3.3 |
Encoding used to load and store properties. Default value is: ${project.build.sourceEncoding} .User property is: i18n.encoding . |
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<bundleCsvSeparator> |
char |
3.3 |
Char separator in the csv bundle file. Default value is: .User property is: i18n.bundleCsvSeparator . |
<silent> |
boolean |
1.0.0-rc-5 |
Silent flag to see only errors in console. Default value is: false .User property is: i18n.silent . |
<verbose> |
boolean |
3.3 |
Verbose flag. Note : if not setted, we used the
maven.verbose property.Default value is: ${maven.verbose} .User property is: i18n.verbose . |
Parameter Details
<bundleCsvFile>
Location of the csv file to split.
- Type:
java.io.File
- Since:
3.3
- Required:
Yes
- User Property:
i18n.bundleCsvFile
<bundleCsvSeparator>
Char separator in the csv bundle file.
- Type:
char
- Since:
3.3
- Required:
No
- User Property:
i18n.bundleCsvSeparator
- Default:
<bundleOutputDir>
Root directory where to generate aggregated bundles (this directory
will be added as resources of the project).
- Type:
java.io.File
- Since:
3.3
- Required:
Yes
- User Property:
i18n.bundleOutputDir
- Default:
${project.build.directory}
<bundleOutputName>
Name of the bundle to generate.
- Type:
java.lang.String
- Since:
3.3
- Required:
Yes
- User Property:
i18n.bundleOutputName
- Default:
${project.artifactId}-i18n
<bundles>
Locales to treate, separated by comma. Example :
fr_FR,en_GB
- Type:
java.lang.String
- Since:
3.3
- Required:
Yes
- User Property:
i18n.bundles
- Default:
fr_FR,en_GB
<encoding>
Encoding used to load and store properties.
- Type:
java.lang.String
- Since:
3.3
- Required:
Yes
- User Property:
i18n.encoding
- Default:
${project.build.sourceEncoding}
<silent>
Silent flag to see only errors in console.
- Type:
boolean
- Since:
1.0.0-rc-5
- Required:
No
- User Property:
i18n.silent
- Default:
false
<verbose>
Verbose flag. Note : if not setted, we used the
maven.verbose
property.- Type:
boolean
- Since:
3.3
- Required:
No
- User Property:
i18n.verbose
- Default:
${maven.verbose}