-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
592 lines (580 loc) · 30.1 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<!DOCTYPE project [
<!ENTITY icu-config SYSTEM "./icu-config.xml">
<!ENTITY icu-locale-deprecates SYSTEM "./icu-locale-deprecates.xml">
]>
<!--
/*
*******************************************************************************
* Copyright (C) 2005-2013, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
-->
<project name="icu-build" default="all" basedir=".">
<target name="init">
<tstamp/>
<!-- Load environment variables -->
<property environment="env"/>
<condition property="is.icu4j.classes.set" >
<or>
<isset property="env.ICU4J_CLASSES" />
<isset property="env.ICU4J_JAR" />
</or>
</condition >
<fail unless="is.icu4j.classes.set" message="Please set the ICU4J_CLASSES or ICU4J_JAR environment variable."/>
<condition property="is.icu4c.dir.set" >
<isset property="env.ICU4C_DIR" />
</condition >
<fail unless="is.icu4c.dir.set" message="Please set the ICU4C_DIR environment variable."/>
<condition property="is.cldr.dir.set" >
<isset property="env.CLDR_DIR" />
</condition >
<fail unless="is.cldr.dir.set" message="Please set the CLDR_DIR environment variable."/>
<condition property="is.cldr.classes.set" >
<or>
<isset property="env.CLDR_CLASSES" />
<isset property="env.CLDR_JAR" />
</or>
</condition >
<fail unless="is.cldr.classes.set" message="Please set the CLDR_CLASSES or CLDR_JAR environment variable."/>
<condition property="is.utilities.classes.set" >
<or>
<isset property="env.ICU4J_CLASSES" />
<isset property="env.UTILITIES_JAR" />
</or>
</condition >
<fail unless="is.utilities.classes.set" message="Please set the ICU4J_CLASSES or UTILITIES_JAR environment variable."/>
<echo message="java home: ${java.home}"/>
<echo message="java version: ${java.version}"/>
<echo message="ant java version: ${ant.java.version}"/>
<echo message="${ant.version}"/>
</target>
<target name="setup">
<echo message="${env.CLDR_CLASSES}"/>
<taskdef name="cldr-build" classname="org.unicode.cldr.ant.CLDRBuild">
<classpath>
<pathelement path="${java.class.path}/"/>
<pathelement path="${env.ICU4J_CLASSES}"/>
<pathelement path="${env.CLDR_CLASSES}"/>
<pathelement location="${env.ICU4J_JAR}"/>
<pathelement location="${env.CLDR_JAR}"/>
<pathelement location="${env.UTILITIES_JAR}"/>
</classpath>
</taskdef>
</target>
<!-- target for generating ICU data -->
<target name="all" depends="locales, resfiles, resfiles_curr, resfiles_lang, resfiles_region, resfiles_zone, collation, colfiles, rbnf, rbnffiles, supplementalData, metadata, metaZones, windowsZones, likelySubtags, plurals, numberingSystems, translit, brkitr, brkfiles, keyTypeData, genderList, postalCodeData, dayPeriods" />
<!-- parallel target -->
<target name="pall" depends="init">
<parallel threadsPerProcessor ="1">
<sequential>
<ant target='locales' />
<ant target='resfiles' />
<ant target='resfiles_curr' />
<ant target='resfiles_lang' />
<ant target='resfiles_region' />
<ant target='resfiles_zone' />
</sequential>
<sequential>
<ant target='collation'>
</ant>
<ant target='colfiles'>
</ant>
</sequential>
<sequential>
<ant target='rbnf'>
</ant>
<ant target='rbnffiles'>
</ant>
</sequential>
<ant target='supplementalData'>
</ant>
<sequential>
<ant target='brkitr'>
</ant>
<ant target='brkfiles'>
</ant>
</sequential>
<sequential>
<ant target='translit'>
</ant>
<!--<ant target='trnsfiles'></ant> Not ANT-built - see
note below. -->
</sequential>
</parallel>
</target>
<target name="locales" depends="init,setup" description="builds locale files in ICU text format">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" srcFile=".*xml" destFile=".*txt">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="--sourcedir" value="${env.CLDR_DIR}/common/main" />
<arg name="--destdir" value="${env.ICU4C_DIR}/source/data/locales"/>
<arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/main"/>
<arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="--type" value="locales"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
<remapper>
<remap sourcePath="/Keys" targetDir="lang" />
<remap sourcePath="/Languages" targetDir="lang" />
<remap sourcePath="/LanguagesShort" targetDir="lang" />
<remap sourcePath="/Scripts" targetDir="lang" />
<remap sourcePath="/Scripts%stand-alone" targetDir="lang" />
<remap sourcePath="/Types" targetDir="lang" />
<remap sourcePath="/Variants" targetDir="lang" />
<remap sourcePath="/codePatterns" targetDir="lang" />
<remap sourcePath="/localeDisplayPattern" targetDir="lang" />
<remap sourcePath="/Countries" targetDir="region" />
<remap sourcePath="/Currencies" targetDir="curr" />
<remap sourcePath="/CurrencyPlurals" targetDir="curr" />
<remap sourcePath="/CurrencyUnitPatterns" targetDir="curr" />
<remap sourcePath="/currencySpacing" targetDir="curr" />
<remap sourcePath="/zoneStrings" targetDir="zone" />
</remapper>
<!-- http://ant.apache.org/faq.html#xml-entity-include -->
&icu-config;
</run>
</cldr-build>
</target>
<target name="resfiles" depends="init,setup" description="builds resfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/main" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/locales"/>
<arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.CLDR_DIR}/common/main" />
</args>
&icu-locale-deprecates;
</run>
</cldr-build>
</target>
<target name="resfiles_curr" depends="init,setup" description="builds curr/resfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
<run>
<args>
<arg name="-d" value="${env.ICU4C_DIR}/source/data/curr" />
<arg name="-s" value="${env.CLDR_DIR}/common/main" />
<arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.CLDR_DIR}/common/main" />
</args>
&icu-locale-deprecates;
</run>
</cldr-build>
</target>
<target name="resfiles_lang" depends="init,setup" description="builds lang/resfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
<run>
<args>
<arg name="-d" value="${env.ICU4C_DIR}/source/data/lang" />
<arg name="-s" value="${env.CLDR_DIR}/common/main" />
<arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.CLDR_DIR}/common/main" />
</args>
&icu-locale-deprecates;
</run>
</cldr-build>
</target>
<target name="resfiles_region" depends="init,setup" description="builds region/resfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
<run>
<args>
<arg name="-d" value="${env.ICU4C_DIR}/source/data/region" />
<arg name="-s" value="${env.CLDR_DIR}/common/main" />
<arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.CLDR_DIR}/common/main" />
</args>
&icu-locale-deprecates;
</run>
</cldr-build>
</target>
<target name="resfiles_zone" depends="init,setup" description="builds zone/resfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
<run>
<args>
<arg name="-d" value="${env.ICU4C_DIR}/source/data/zone" />
<arg name="-s" value="${env.CLDR_DIR}/common/main" />
<arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.CLDR_DIR}/common/main" />
</args>
&icu-locale-deprecates;
</run>
</cldr-build>
</target>
<target name="collation" depends="init,setup" description="builds collation files in ICU text format">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" srcFile=".*xml" destFile=".*txt">
<run>
<args>
<arg name="--sourcedir" value="${env.CLDR_DIR}/common/collation" />
<arg name="--destdir" value="${env.ICU4C_DIR}/source/data/coll"/>
<arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/collation"/>
<arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
</args>
<!-- http://ant.apache.org/faq.html#xml-entity-include -->
&icu-config;
</run>
</cldr-build>
</target>
<target name="colfiles" depends="init, setup" description="builds colfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="colfiles.mk" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/collation" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/coll"/>
<arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/collation"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.CLDR_DIR}/common/collation" />
</args>
<!-- http://ant.apache.org/faq.html#xml-entity-include -->
&icu-config;
<deprecates>
<alias from="de__PHONEBOOK" to="de@collation=phonebook" xpath="//ldml/collations/default[@type='phonebook']"/>
<alias from="es__TRADITIONAL" to="es@collation=traditional" xpath="//ldml/collations/default[@type='traditional']"/>
<alias from="in" to="id" />
<alias from="in_ID" to="id_ID" />
<alias from="iw" to="he" />
<alias from="iw_IL" to="he_IL" />
<alias from="mo" to="ro_MD" />
<alias from="no" to="nb" />
<alias from="no_NO" to="nb_NO" />
<alias from="pa_IN" to="pa_Guru_IN" />
<alias from="sh" to="sr_Latn" />
<alias from="sh_BA" to="sr_Latn_BA" />
<alias from="sh_CS" to="sr_Latn_RS" />
<alias from="sh_YU" to="sr_Latn_RS" />
<alias from="sr_BA" to="sr_Cyrl_BA" />
<alias from="sr_ME" to="sr_Cyrl_ME" />
<alias from="sr_RS" to="sr_Cyrl_RS" />
<alias from="zh_CN" to="zh_Hans_CN" />
<alias from="zh_SG" to="zh_Hans_SG" />
<alias from="zh_HK" to="zh_Hant_HK" />
<alias from="zh_MO" to="zh_Hant_MO" />
<alias from="zh_TW" to="zh_Hant_TW" />
<emptyLocale locale="de_" />
<emptyLocale locale="es_" />
</deprecates>
</run>
</cldr-build>
</target>
<target name="rbnf" depends="init,setup" description="builds rbnf files in ICU text format">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" srcFile=".*xml" destFile=".*txt">
<run>
<args>
<arg name="--sourcedir" value="${env.CLDR_DIR}/common/rbnf" />
<arg name="--destdir" value="${env.ICU4C_DIR}/source/data/rbnf"/>
<arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/rbnf"/>
<arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
</args>
<!-- http://ant.apache.org/faq.html#xml-entity-include -->
&icu-config;
</run>
</cldr-build>
</target>
<target name="rbnffiles" depends="init, setup" description="builds rbnffiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="rbnffiles.mk" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/rbnf" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/rbnf"/>
<arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/rbnf"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.CLDR_DIR}/common/rbnf" />
</args>
&icu-config;
</run>
</cldr-build>
</target>
<target name="supplementalData" depends="init,setup" description="builds supplementalData.txt from supplementalData.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="supplementalData.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="supplementalData"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
<remapper>
<remap sourcePath="/CurrencyMap" targetDir="curr" />
<remap sourcePath="/CurrencyMeta" targetDir="curr" />
</remapper>
</run>
</cldr-build>
</target>
<target name="metadata" depends="init,setup" description="builds metadata.txt from supplementalMetadata.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="metadata.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="metadata"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="metaZones" depends="init,setup" description="builds metaZones.txt from metaZones.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="metaZones.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="metaZones"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="windowsZones" depends="init,setup" description="builds windowsZones.txt from windowsZones.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="windowsZones.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="windowsZones"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="likelySubtags" depends="init,setup" description="builds likelySubtags.txt from likelySubtags.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="likelySubtags.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="likelySubtags"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="plurals" depends="init,setup" description="builds plurals.txt from plurals.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="plurals.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="plurals"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="numberingSystems" depends="init,setup" description="builds numberingSystems.txt from numberingSystems.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="numberingSystems.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="numberingSystems"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="genderList" depends="init,setup" description="builds genderList.txt from genderList.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="genderList.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="genderList"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="postalCodeData" depends="init,setup" description="builds postalCodeData.txt from postalCodeData.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="postalCodeData.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="postalCodeData"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="dayPeriods" depends="init,setup" description="builds dayPeriods.txt from dayPeriods.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="dayPeriods.txt" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="dayPeriods"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="brkitr" depends="init,setup" description="builds break iterator files in ICU text format">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" srcFile=".*xml" destFile=".*txt">
<run>
<args>
<arg name="--sourcedir" value="${env.ICU4C_DIR}/source/data/xml/brkitr"/>
<arg name="--destdir" value="${env.ICU4C_DIR}/source/data/brkitr"/>
<arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
</args>
<!-- The entity include is not required for this target -->
<!-- http://ant.apache.org/faq.html#xml-entity-include
&icu-config;
-->
</run>
</cldr-build>
</target>
<target name="brkfiles" depends="init, setup" description="builds brkfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="brkfiles.mk" noArgs="true">
<!-- launch the tool and generate the data after reading the config file -->
<run>
<args>
<arg name="-s" value="${env.ICU4C_DIR}/source/data/xml/brkitr" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/brkitr"/>
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
<arg name="-w" value="${env.ICU4C_DIR}/source/data/xml/brkitr" />
</args>
</run>
</cldr-build>
</target>
<target name="keyTypeData" depends="init,setup" description="builds keyTypeData.txt and timezoneTypes.txt from bcp47/*.xml">
<cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" noArgs="true">
<run>
<args>
<arg name="-s" value="${env.CLDR_DIR}/common/bcp47" />
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
<arg name="-t" value="keyTypeData"/>
<arg name="--cldrVersion" value="23.1"/>
</args>
</run>
</cldr-build>
</target>
<target name="translit" depends="init,setup" description="builds collation files in ICU text format">
<cldr-build toolName="org.unicode.cldr.icu.ConvertTransforms" srcFile=".*xml" destFile=".*txt">
<run>
<args>
<arg name="-m" value="((?!.*(Canadian|Ethiopic).*).*)" />
<arg name="--sourcedir" value="${env.CLDR_DIR}/common/transforms" />
<arg name="--destdir" value="${env.ICU4C_DIR}/source/data/translit"/>
<arg name="--commentSkip"/>
</args>
<!-- http://ant.apache.org/faq.html#xml-entity-include -->
</run>
</cldr-build>
</target>
<!-- we don't generate en.txt or el.txt - so don't change trnsfiles.mk for now. -->
<!--
<target name="trnsfiles" depends="init, setup" description="builds trnsfiles.mk">
<cldr-build toolName="org.unicode.cldr.icu.ConvertTransforms" srcFile=".*xml" destFile="trnsfiles.mk" noArgs="true">
<run>
<args> [ double hyphen not allowed in comments - transpose -" to fix below ]
<arg name=-"-sourcedir" value="${env.CLDR_DIR}/common/transforms" />
<arg name=-"-destdir" value="${env.ICU4C_DIR}/source/data/translit"/>
<arg name=-"-commentSkip"/>
<arg name=-"-writeIndex"/>
</args>
</run>
</cldr-build>
</target> -->
<target name="clean" depends="init, setup" description="deletes all txt files and mk files from coll and locales directories">
<delete>
<fileset id="locales" dir="${env.ICU4C_DIR}/source/data/locales">
<include name="*.txt" />
</fileset>
<fileset id="resfiles" dir="${env.ICU4C_DIR}/source/data/locales">
<include name="resfiles.mk" />
</fileset>
<fileset id="locales_split" dir="${env.ICU4C_DIR}/source/data">
<include name="curr/*.txt" />
<include name="curr/resfiles.mk" />
<include name="lang/*.txt" />
<include name="lang/resfiles.mk" />
<include name="region/*.txt" />
<include name="region/resfiles.mk" />
<include name="zone/*.txt" />
<include name="zone/resfiles.mk" />
</fileset>
<fileset id="collation" dir="${env.ICU4C_DIR}/source/data/coll">
<include name="*.txt" />
</fileset>
<fileset id="colfiles" dir="${env.ICU4C_DIR}/source/data/coll">
<include name="colfiles.mk" />
</fileset>
<fileset id="translit" dir="${env.ICU4C_DIR}/source/data/translit">
<include name="*_*.txt" />
<include name="root.txt" />
</fileset>
<fileset id="brkitr" dir="${env.ICU4C_DIR}/source/data/brkitr">
<!-- brkitr directory contains bunch of txt files that are not produced by LDML2ICUConverter.
So can't clean up everything. This needs to be updated when new files are added to xml/brkitr directory -->
<include name="root.txt" />
<include name="el.txt" />
<include name="en.txt" />
<include name="en_US.txt" />
<include name="en_US_POSIX.txt" />
<include name="fi.txt" />
<include name="ja.txt" />
</fileset>
<fileset id="brkfiles" dir="${env.ICU4C_DIR}/source/data/brkitr">
<include name="brkfiles.mk" />
</fileset>
<fileset id="supplementalData" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="supplementalData.txt" />
</fileset>
<fileset id="rbnf" dir="${env.ICU4C_DIR}/source/data/rbnf">
<include name="*.txt" />
</fileset>
<fileset id="rbnffiles" dir="${env.ICU4C_DIR}/source/data/rbnf">
<include name="rbnffiles.mk" />
</fileset>
<fileset id="metadata" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="metadata.txt" />
</fileset>
<fileset id="metaZones" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="metaZones.txt" />
</fileset>
<fileset id="windowsZones" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="windowsZones.txt" />
</fileset>
<fileset id="likelySubtags" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="likelySubtags.txt" />
</fileset>
<fileset id="plurals" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="plurals.txt" />
</fileset>
<fileset id="numberingSystems" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="numberingSystems.txt" />
</fileset>
<fileset id="keyTypeData" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="keyTypeData.txt" />
<include name="timezoneTypes.txt" />
</fileset>
<fileset id="genderList" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="genderList.txt" />
</fileset>
<fileset id="postalCodeData" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="postalCodeData.txt" />
</fileset>
<fileset id="dayPeriods" dir="${env.ICU4C_DIR}/source/data/misc">
<include name="dayPeriods.txt" />
</fileset>
</delete>
</target>
</project>