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