trema:exportAndroid
Full name:
com.netcetera.trema:trema-maven-plugin:0.2.1-SNAPSHOT:exportAndroid
Description:
Export data from a Trema file into android strings.xml files.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase: process-sources.
Optional Parameters
Name |
Type |
Since |
Description |
defaultlanguage |
String |
- |
Defaultlanguage. If specified, this language will be exported into
a default file without the language suffix in the values directory
name, eg. /values/strings.xml. User property is: defaultlanguage. |
exportPath |
String |
- |
Path to the res/ directory of android project. The values
directories names will be generated in format values-$language$
where language is the specific language that is being exported. The
generated files will be named strings.xml Default value is: ${project.build.directory}/generated/texts/. User property is: exportPath. |
languages |
String[] |
- |
Languages. Languages to be exported. If not provided, all languages
are exported. User property is: languages. |
states |
String[] |
- |
States. The states to be exported. If not provided, all states are
exported. User property is: states. |
tremaFile |
String |
- |
Trema file. Path to the trema file to export. Default value is: ${project.basedir}/src/main/resources/text.trm. User property is: tremaFile. |
Parameter Details
defaultlanguage:
Defaultlanguage. If specified, this language will be exported into
a default file without the language suffix in the values directory
name, eg. /values/strings.xml.
- Type: java.lang.String
- Required: No
- User Property: defaultlanguage
exportPath:
Path to the res/ directory of android project. The values
directories names will be generated in format values-$language$
where language is the specific language that is being exported. The
generated files will be named strings.xml
- Type: java.lang.String
- Required: No
- User Property: exportPath
- Default: ${project.build.directory}/generated/texts/
languages:
Languages. Languages to be exported. If not provided, all languages
are exported.
- Type: java.lang.String[]
- Required: No
- User Property: languages
states:
States. The states to be exported. If not provided, all states are
exported.
- Type: java.lang.String[]
- Required: No
- User Property: states
tremaFile:
Trema file. Path to the trema file to export.
- Type: java.lang.String
- Required: No
- User Property: tremaFile
- Default: ${project.basedir}/src/main/resources/text.trm