You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -191,6 +193,99 @@ standard build output directory (`target/classes`) (*outputDir* attribute) with
191
193
as `Messages_fr.properties` for French. This operation is done for all available
192
194
target languages in the Globalization Pipeline bundle.
193
195
196
+
### <aname="TOC-Parameters"></a>Task Parameters
197
+
198
+
### upload task
199
+
The upload task should be configured using `gp:upload` task definition. The attributes and nested elements
200
+
of `gp:upload` are described below:
201
+
202
+
|Attribute|Description|Required|
203
+
| ------- | --------- | ------ |
204
+
|credentialsJson| Specifies the pathname of Globalization Pipeline Instance credentials file|Yes (if the nested element `credentials` is not used)|
205
+
|sourceDir| Specifies the pathname for the location where all the relevant bundle files to be uploaded are kept|Yes|
206
+
##### Nested elements for upload task
207
+
##### credentials (optional, can be omitted if credentialsJson is specified.)
208
+
|Attribute|Description|Required|
209
+
| ------- | --------- | ------ |
210
+
|url| Specifies the instance url | Yes |
211
+
|userId| Specifies the userId | Yes |
212
+
|password| Specifies the password | Yes |
213
+
|instanceId| Specifies the instance id | Yes |
214
+
215
+
##### targetLanguage (optional)
216
+
|Attribute|Description|Required|
217
+
| ------- | --------- | ------ |
218
+
|lang | Specifies the MT language which the uploaded file should be translated to| Yes |
219
+
220
+
##### bundleSet (optional)
221
+
|Attribute|Description|Required|
222
+
| ------- | --------- | ------ |
223
+
| type | Type of resource bundle file (JSON, JAVA (properties), AMDJS, ...)| No, defaults to JAVA properties file format|
224
+
|sourceLanguage|Specifies BCP 47 language tag for the language used in the source bundles|No, The default language of `en` is used|
225
+
|languageIdStyle| Specifies one of following keywords to configure the rule for composing language ID used for output resource bundle file or path name.<ul><li><b>BCP47_UNDERSCORE</b> BCP 47 language tag, replacing '-' with '_'. For example, zh_Hant for Traditional Chinese.</li><li><b>BCP47</b> BCP 47 language tag itself. For example, zh-Hant for Traditional Chinese </li></ul>| No, The default value is BCP47_UNDERSCORE|
226
+
227
+
##### targetLanguage (nested within bundleSet, optional too)
228
+
|Attribute|Description|Required|
229
+
| ------- | --------- | ------ |
230
+
|lang | Specifies the MT language which the uploaded file should be translated to| Yes |
231
+
232
+
##### fileset (nested within bundleSet, required if bundleSet is used)
233
+
|Attribute|Description|Required|
234
+
| ------- | --------- | ------ |
235
+
|dir| Specifies the source directory location for the bundleSet to be used as reference | Yes |
236
+
|includes| Specifies the file pattern that needs to be included for uploading|No, but recommended|
237
+
|excludes| Specifies the file pattern that needs to be excluded for uploading|No|
238
+
239
+
### download task
240
+
The download task should be configured using `gp:download` task definition. The attributes and nested elements
241
+
of `gp:download` are described below:
242
+
243
+
|Attribute|Description|Required|
244
+
| ------- | --------- | ------ |
245
+
|credentialsJson| Specifies the pathname of Globalization Pipeline Instance credentials file|Yes (if the nested element `credentials` is not used)|
246
+
|sourceDir| Specifies the pathname for the location where all the relevant bundle files to be referenced for download are kept|Yes|
247
+
|outputDir| Specifies the pathname for the location where all the resource bundle files should be downloaded|No, defaults to `target/classes` directory|
248
+
##### Nested elements for download task
249
+
##### credentials (optional, can be omitted if credentialsJson is specified.)
250
+
|Attribute|Description|Required|
251
+
| ------- | --------- | ------ |
252
+
|url| Specifies the instance url | Yes |
253
+
|userId| Specifies the userId | Yes |
254
+
|password| Specifies the password | Yes |
255
+
|instanceId| Specifies the instance id | Yes |
256
+
257
+
##### targetLanguage (optional)
258
+
|Attribute|Description|Required|
259
+
| ------- | --------- | ------ |
260
+
|lang | Specifies the MT language which the uploaded file should be translated to| Yes |
261
+
262
+
##### bundleSet (optional)
263
+
|Attribute|Description|Required|
264
+
| ------- | --------- | ------ |
265
+
| type | Type of resource bundle file (JSON, JAVA (properties), AMDJS, ...)| No, defaults to JAVA properties file format|
266
+
|sourceLanguage|Specifies BCP 47 language tag for the language used in the source bundles|No, The default language of `en` is used|
267
+
|languageIdStyle| Specifies one of following keywords to configure the rule for composing language ID used for output resource bundle file or path name.<ul><li><b>BCP47_UNDERSCORE</b> BCP 47 language tag, replacing '-' with '_'. For example, zh_Hant for Traditional Chinese.</li><li><b>BCP47</b> BCP 47 language tag itself. For example, zh-Hant for Traditional Chinese </li></ul>| No, The default value is BCP47_UNDERSCORE|
268
+
|outputDir|Specifies the output base directory for this bundleSet|No, If not specified, `outputDir` specified at `gp:download` level is used|
269
+
|outputContentOption|Specifies one of following keywords to control how download goal generates the contents of translated resource bundle files.<ul><li><b>MERGE_TO_SOURCE</b> Duplicates the contents of the source bundle and replaces only translated resource strings. This option might not be implemented by some format types. In this case, TRANSLATED_WITH_FALLBACK is used instead.</li><li><b>TRANSLATED_WITH_FALLBACK</b> Emits only resource strings (with a simple header if applicable). When translated string value is not available, the value in the source language is used.</li><li><b>TRANSLATED_ONLY</b> Emits only resource strings (with a simple header if applicable). When translated string value is not available, do not include the key in the output.</li><li><b>MERGE_REVIEWED_TO_SOURCE</b> Duplicate the contents of the source bundle and replaces only translated resource strings marked as reviewed. This option might not be implemented by some format types. In this case, REVIEWED_WITH_FALLBACK is used instead.</li><li><b>REVIEWED_WITH_FALLBACK</b> Emits only resource strings marked as reviewed. When translated string value is not available, or not marked as reviewed, the value in the source language is used.</li><li><b>REVIEWED_ONLY</b> Emits only resource strings marked as reviewed. When translated string value is not available, or translated not marked as reviewed, do not include the key in the output.|No, The default value is MERGE_TO_SOURCE.|
270
+
|bundleLayout|Specifies one of following keywords to control output file name or path in download goal.<ul><li><b>LANGUAGE_SUFFIX</b> In the same directory with the source bundle file, with extra language suffix. For example, if the source bundle file is com/ibm/g11n/MyMessages.properties, then the French version will be com/ibm/g11n/MyMessages_fr.properties.</li><li><b>LANGUAGE_SUBDIR</b> In a language sub-directory under the directory where the source bundle file is placed. For example, if the source bundle file is res/MyMessages.json, then the French version will be res/fr/MyMessages.json.</li><li><b>LANGUAGE_DIR</b> In a language directory at the same level with the source bundle file. For example, if the source bundle file is com/ibm/g11n/en/MyMessages.properties, then the French version will be com/ibm/g11n/fr/MyMessages.properties.</li>|No, The default value is LANGUAGE_SUFFIX.|
271
+
272
+
##### targetLanguage (nested within bundleSet, optional too)
273
+
|Attribute|Description|Required|
274
+
| ------- | --------- | ------ |
275
+
|lang | Specifies the MT language which the uploaded file should be translated to| Yes |
276
+
277
+
##### languageMap (nested within bundleSet, optional)
278
+
|Attribute|Description|Required|
279
+
| ------- | --------- | ------ |
280
+
|from | Specifies the language code used in bundle files/directories which needs to be downloaded | Yes|
281
+
|to | Specifies the language code to be used when naming the downloaded file/directory|Yes|
282
+
283
+
##### fileset (nested within bundleSet, required if bundleSet is used)
284
+
|Attribute|Description|Required|
285
+
| ------- | --------- | ------ |
286
+
|dir| Specifies the source directory location for the bundleSet to be used as reference | Yes |
287
+
|includes| Specifies the file pattern that needs to be included for reference when downloading|No, but recommended|
288
+
|excludes| Specifies the file pattern that needs to be excluded for reference|No|
0 commit comments