]> git.saurik.com Git - apple/icu.git/blame - icuSources/data/build.xml
ICU-491.11.2.tar.gz
[apple/icu.git] / icuSources / data / build.xml
CommitLineData
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*******************************************************************************
4388f060 8* Copyright (C) 2005-2011, 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 -->
4388f060 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" />
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
A
115 <target name="locales" depends="init,setup" description="builds locale files in ICU text format">
116 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" srcFile=".*xml" destFile=".*txt">
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" />
124 </args>
729e4ab9
A
125 <remapper>
126 <remap sourcePath="/Keys" targetDir="lang" />
127 <remap sourcePath="/Languages" targetDir="lang" />
128 <remap sourcePath="/LanguagesShort" targetDir="lang" />
129 <remap sourcePath="/Scripts" targetDir="lang" />
4388f060 130 <remap sourcePath="/Scripts%stand-alone" targetDir="lang" />
729e4ab9
A
131 <remap sourcePath="/Types" targetDir="lang" />
132 <remap sourcePath="/Variants" targetDir="lang" />
133 <remap sourcePath="/codePatterns" targetDir="lang" />
134 <remap sourcePath="/localeDisplayPattern" targetDir="lang" />
135 <remap sourcePath="/Countries" targetDir="region" />
136 <remap sourcePath="/Currencies" targetDir="curr" />
137 <remap sourcePath="/CurrencyPlurals" targetDir="curr" />
138 <remap sourcePath="/CurrencyUnitPatterns" targetDir="curr" />
139 <remap sourcePath="/currencySpacing" targetDir="curr" />
140 <remap sourcePath="/zoneStrings" targetDir="zone" />
141 </remapper>
73c04bcf
A
142 <!-- http://ant.apache.org/faq.html#xml-entity-include -->
143 &icu-config;
144 </run>
145 </cldr-build>
146 </target>
147 <target name="resfiles" depends="init,setup" description="builds resfiles.mk">
148 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
149 <run>
150 <args>
151 <arg name="-s" value="${env.CLDR_DIR}/common/main" />
152 <arg name="-d" value="${env.ICU4C_DIR}/source/data/locales"/>
153 <arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
154 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
155 <arg name="-w" value="${env.CLDR_DIR}/common/main" />
156 </args>
729e4ab9
A
157 &icu-locale-deprecates;
158 </run>
159 </cldr-build>
160 </target>
161 <target name="resfiles_curr" depends="init,setup" description="builds curr/resfiles.mk">
162 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
163 <run>
164 <args>
165 <arg name="-d" value="${env.ICU4C_DIR}/source/data/curr" />
166 <arg name="-s" value="${env.CLDR_DIR}/common/main" />
167 <arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
168 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
169 <arg name="-w" value="${env.CLDR_DIR}/common/main" />
170 </args>
171 &icu-locale-deprecates;
172 </run>
173 </cldr-build>
174 </target>
175 <target name="resfiles_lang" depends="init,setup" description="builds lang/resfiles.mk">
176 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
177 <run>
178 <args>
179 <arg name="-d" value="${env.ICU4C_DIR}/source/data/lang" />
180 <arg name="-s" value="${env.CLDR_DIR}/common/main" />
181 <arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
182 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
183 <arg name="-w" value="${env.CLDR_DIR}/common/main" />
184 </args>
185 &icu-locale-deprecates;
186 </run>
187 </cldr-build>
188 </target>
189 <target name="resfiles_region" depends="init,setup" description="builds region/resfiles.mk">
190 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
191 <run>
192 <args>
193 <arg name="-d" value="${env.ICU4C_DIR}/source/data/region" />
194 <arg name="-s" value="${env.CLDR_DIR}/common/main" />
195 <arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
196 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
197 <arg name="-w" value="${env.CLDR_DIR}/common/main" />
198 </args>
199 &icu-locale-deprecates;
200 </run>
201 </cldr-build>
202 </target>
203 <target name="resfiles_zone" depends="init,setup" description="builds zone/resfiles.mk">
204 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="resfiles.mk" noArgs="true">
205 <run>
206 <args>
207 <arg name="-d" value="${env.ICU4C_DIR}/source/data/zone" />
208 <arg name="-s" value="${env.CLDR_DIR}/common/main" />
209 <arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/main"/>
210 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
211 <arg name="-w" value="${env.CLDR_DIR}/common/main" />
212 </args>
213 &icu-locale-deprecates;
73c04bcf
A
214 </run>
215 </cldr-build>
216 </target>
217 <target name="collation" depends="init,setup" description="builds collation files in ICU text format">
218 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" srcFile=".*xml" destFile=".*txt">
219 <run>
220 <args>
221 <arg name="--sourcedir" value="${env.CLDR_DIR}/common/collation" />
222 <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/coll"/>
223 <arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/collation"/>
46f4442e 224 <arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
73c04bcf
A
225 </args>
226 <!-- http://ant.apache.org/faq.html#xml-entity-include -->
227 &icu-config;
228 </run>
229 </cldr-build>
230 </target>
231 <target name="colfiles" depends="init, setup" description="builds colfiles.mk">
232 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="colfiles.mk" noArgs="true">
233 <!-- launch the tool and generate the data after reading the config file -->
234 <run>
235 <args>
236 <arg name="-s" value="${env.CLDR_DIR}/common/collation" />
237 <arg name="-d" value="${env.ICU4C_DIR}/source/data/coll"/>
238 <arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/collation"/>
239 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
240 <arg name="-w" value="${env.CLDR_DIR}/common/collation" />
241 </args>
729e4ab9
A
242 <!-- http://ant.apache.org/faq.html#xml-entity-include -->
243 &icu-config;
46f4442e
A
244 <deprecates>
245 <alias from="de__PHONEBOOK" to="de@collation=phonebook" xpath="//ldml/collations/default[@type='phonebook']"/>
246 <alias from="es__TRADITIONAL" to="es@collation=traditional" xpath="//ldml/collations/default[@type='traditional']"/>
247 <alias from="hi__DIRECT" to="hi@collation=direct" xpath="//ldml/collations/default[@type='direct']"/>
248 <alias from="zh__PINYIN" to="zh@collation=pinyin" xpath="//ldml/collations/default[@type='pinyin']"/>
249 <alias from="zh_TW_STROKE" to="zh@collation=stroke" xpath="//ldml/collations/default[@type='stroke']"/>
250 <alias from="in" to="id" />
251 <alias from="in_ID" to="id_ID" />
252 <alias from="iw" to="he" />
73c04bcf 253 <alias from="iw_IL" to="he_IL" />
729e4ab9 254 <alias from="mo" to="ro_MD" />
46f4442e
A
255 <alias from="no" to="nb" />
256 <alias from="no_NO" to="nb_NO" />
729e4ab9 257 <alias from="pa_IN" to="pa_Guru_IN" />
46f4442e
A
258 <alias from="sh" to="sr_Latn" />
259 <alias from="sh_BA" to="sr_Latn_BA" />
260 <alias from="sh_CS" to="sr_Latn_RS" />
261 <alias from="sh_YU" to="sr_Latn_RS" />
262 <alias from="sr_BA" to="sr_Cyrl_BA" />
263 <alias from="sr_ME" to="sr_Cyrl_ME" />
264 <alias from="sr_RS" to="sr_Cyrl_RS" />
265 <alias from="zh_CN" to="zh_Hans_CN" />
266 <alias from="zh_SG" to="zh_Hans_SG" />
267 <alias from="zh_HK" to="zh_Hant_HK" />
268 <alias from="zh_MO" to="zh_Hant_MO" />
269 <alias from="zh_TW" to="zh_Hant_TW" />
73c04bcf
A
270 <emptyLocale locale="de_" />
271 <emptyLocale locale="es_" />
272 <emptyLocale locale="hi_" />
273 <emptyLocale locale="zh_" />
46f4442e 274 </deprecates>
73c04bcf
A
275 </run>
276 </cldr-build>
277 </target>
729e4ab9
A
278 <target name="rbnf" depends="init,setup" description="builds rbnf files in ICU text format">
279 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" srcFile=".*xml" destFile=".*txt">
280 <run>
281 <args>
282 <arg name="--sourcedir" value="${env.CLDR_DIR}/common/rbnf" />
283 <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/rbnf"/>
284 <arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/rbnf"/>
285 <arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
286 </args>
287 <!-- http://ant.apache.org/faq.html#xml-entity-include -->
288 &icu-config;
289 </run>
290 </cldr-build>
291 </target>
292 <target name="rbnffiles" depends="init, setup" description="builds rbnffiles.mk">
293 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="rbnffiles.mk" noArgs="true">
294 <!-- launch the tool and generate the data after reading the config file -->
295 <run>
296 <args>
297 <arg name="-s" value="${env.CLDR_DIR}/common/rbnf" />
298 <arg name="-d" value="${env.ICU4C_DIR}/source/data/rbnf"/>
299 <arg name="-p" value="${env.ICU4C_DIR}/source/data/xml/rbnf"/>
300 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
301 <arg name="-w" value="${env.CLDR_DIR}/common/rbnf" />
302 </args>
4388f060 303 &icu-config;
729e4ab9
A
304 </run>
305 </cldr-build>
306 </target>
73c04bcf
A
307 <target name="supplementalData" depends="init,setup" description="builds supplementalData.txt from supplementalData.xml">
308 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="supplementalData.txt" noArgs="true">
309 <!-- launch the tool and generate the data after reading the config file -->
310 <run>
311 <args>
312 <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
313 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
314 <arg name="-l"/>
315 <arg name="-f"/>
316 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
317 </args>
729e4ab9
A
318 <remapper>
319 <remap sourcePath="/CurrencyMap" targetDir="curr" />
320 <remap sourcePath="/CurrencyMeta" targetDir="curr" />
321 </remapper>
73c04bcf
A
322 </run>
323 </cldr-build>
324 </target>
4388f060
A
325 <target name="metadata" depends="init,setup" description="builds metadata.txt from supplementalMetadata.xml">
326 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="metadata.txt" noArgs="true">
327 <!-- launch the tool and generate the data after reading the config file -->
328 <run>
329 <args>
330 <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
331 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
332 <arg name="-q"/>
333 <arg name="-f"/>
334 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
335 </args>
336 </run>
337 </cldr-build>
338 </target>
729e4ab9
A
339 <target name="metaZones" depends="init,setup" description="builds metaZones.txt from metaZones.xml">
340 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="metaZones.txt" noArgs="true">
46f4442e
A
341 <!-- launch the tool and generate the data after reading the config file -->
342 <run>
343 <args>
344 <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
345 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
346 <arg name="-z"/>
347 <arg name="-f"/>
348 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
349 </args>
350 </run>
351 </cldr-build>
352 </target>
729e4ab9
A
353 <target name="windowsZones" depends="init,setup" description="builds windowsZones.txt from windowsZones.xml">
354 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="windowsZones.txt" noArgs="true">
355 <!-- launch the tool and generate the data after reading the config file -->
356 <run>
357 <args>
358 <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
359 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
360 <arg name="-i"/>
361 <arg name="-f"/>
362 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
363 </args>
364 </run>
365 </cldr-build>
366 </target>
46f4442e
A
367 <target name="likelySubtags" depends="init,setup" description="builds likelySubtags.txt from likelySubtags.xml">
368 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="likelySubtags.txt" noArgs="true">
369 <!-- launch the tool and generate the data after reading the config file -->
370 <run>
371 <args>
372 <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
373 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
374 <arg name="-t"/>
375 <arg name="-f"/>
376 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
377 </args>
378 </run>
379 </cldr-build>
380 </target>
381 <target name="plurals" depends="init,setup" description="builds plurals.txt from plurals.xml">
382 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="plurals.txt" noArgs="true">
383 <!-- launch the tool and generate the data after reading the config file -->
384 <run>
385 <args>
386 <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
387 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
388 <arg name="-r"/>
389 <arg name="-f"/>
390 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
391 </args>
392 </run>
393 </cldr-build>
394 </target>
729e4ab9
A
395 <target name="numberingSystems" depends="init,setup" description="builds numberingSystems.txt from numberingSystems.xml">
396 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="numberingSystems.txt" noArgs="true">
397 <!-- launch the tool and generate the data after reading the config file -->
398 <run>
399 <args>
400 <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" />
401 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
402 <arg name="-n"/>
403 <arg name="-f"/>
404 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
405 </args>
406 </run>
407 </cldr-build>
408 </target>
73c04bcf
A
409 <target name="brkitr" depends="init,setup" description="builds break iterator files in ICU text format">
410 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" srcFile=".*xml" destFile=".*txt">
411 <run>
412 <args>
413 <arg name="--sourcedir" value="${env.ICU4C_DIR}/source/data/xml/brkitr"/>
414 <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/brkitr"/>
46f4442e 415 <arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
73c04bcf
A
416 </args>
417 <!-- The entity include is not required for this target -->
46f4442e 418 <!-- http://ant.apache.org/faq.html#xml-entity-include
73c04bcf
A
419 &icu-config;
420 -->
421 </run>
422 </cldr-build>
423 </target>
424 <target name="brkfiles" depends="init, setup" description="builds brkfiles.mk">
425 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="brkfiles.mk" noArgs="true">
426 <!-- launch the tool and generate the data after reading the config file -->
427 <run>
428 <args>
429 <arg name="-s" value="${env.ICU4C_DIR}/source/data/xml/brkitr" />
430 <arg name="-d" value="${env.ICU4C_DIR}/source/data/brkitr"/>
431 <arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
432 <arg name="-w" value="${env.ICU4C_DIR}/source/data/xml/brkitr" />
433 </args>
434 </run>
435 </cldr-build>
436 </target>
729e4ab9
A
437
438 <target name="keyTypeData" depends="init,setup" description="builds keyTypeData.txt and timezoneTypes.txt from bcp47/*.xml">
439 <cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" noArgs="true">
440 <!-- launch the tool and generate the data after reading the config file -->
441 <run>
442 <args>
443 <arg name="-s" value="${env.CLDR_DIR}/common/bcp47" />
444 <arg name="-k" value="${env.CLDR_DIR}/common/bcp47" />
445 <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
446 </args>
447 </run>
448 </cldr-build>
449 </target>
450
73c04bcf
A
451 <target name="translit" depends="init,setup" description="builds collation files in ICU text format">
452 <cldr-build toolName="org.unicode.cldr.icu.ConvertTransforms" srcFile=".*xml" destFile=".*txt">
453 <run>
454 <args>
729e4ab9 455 <arg name="-m" value="((?!.*(Canadian|Ethiopic).*).*)" />
73c04bcf
A
456 <arg name="--sourcedir" value="${env.CLDR_DIR}/common/transforms" />
457 <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/translit"/>
458 <arg name="--commentSkip"/>
459 </args>
460 <!-- http://ant.apache.org/faq.html#xml-entity-include -->
46f4442e 461
73c04bcf
A
462 </run>
463 </cldr-build>
464 </target>
46f4442e
A
465 <!-- we don't generate en.txt or el.txt - so don't change trnsfiles.mk for now. -->
466<!--
467 <target name="trnsfiles" depends="init, setup" description="builds trnsfiles.mk">
468 <cldr-build toolName="org.unicode.cldr.icu.ConvertTransforms" srcFile=".*xml" destFile="trnsfiles.mk" noArgs="true">
73c04bcf 469 <run>
46f4442e
A
470 <args> [ double hyphen not allowed in comments - transpose -" to fix below ]
471 <arg name=-"-sourcedir" value="${env.CLDR_DIR}/common/transforms" />
472 <arg name=-"-destdir" value="${env.ICU4C_DIR}/source/data/translit"/>
473 <arg name=-"-commentSkip"/>
474 <arg name=-"-writeIndex"/>
73c04bcf 475 </args>
73c04bcf
A
476 </run>
477 </cldr-build>
46f4442e 478 </target> -->
73c04bcf
A
479 <target name="clean" depends="init, setup" description="deletes all txt files and mk files from coll and locales directories">
480 <delete>
481 <fileset id="locales" dir="${env.ICU4C_DIR}/source/data/locales">
482 <include name="*.txt" />
46f4442e
A
483 </fileset>
484 <fileset id="resfiles" dir="${env.ICU4C_DIR}/source/data/locales">
73c04bcf
A
485 <include name="resfiles.mk" />
486 </fileset>
729e4ab9
A
487 <fileset id="locales_split" dir="${env.ICU4C_DIR}/source/data">
488 <include name="curr/*.txt" />
489 <include name="curr/resfiles.mk" />
490 <include name="lang/*.txt" />
491 <include name="lang/resfiles.mk" />
492 <include name="region/*.txt" />
493 <include name="region/resfiles.mk" />
494 <include name="zone/*.txt" />
495 <include name="zone/resfiles.mk" />
496 </fileset>
46f4442e 497 <fileset id="collation" dir="${env.ICU4C_DIR}/source/data/coll">
73c04bcf 498 <include name="*.txt" />
46f4442e
A
499 </fileset>
500 <fileset id="colfiles" dir="${env.ICU4C_DIR}/source/data/coll">
73c04bcf
A
501 <include name="colfiles.mk" />
502 </fileset>
729e4ab9 503 <fileset id="translit" dir="${env.ICU4C_DIR}/source/data/translit">
46f4442e
A
504 <include name="*_*.txt" />
505 <include name="root.txt" />
506 </fileset>
729e4ab9 507 <fileset id="brkitr" dir="${env.ICU4C_DIR}/source/data/brkitr">
46f4442e 508 <!-- brkitr directory contains bunch of txt files that are not produced by LDML2ICUConverter.
73c04bcf 509 So can't clean up everything. This needs to be updated when new files are added to xml/brkitr directory -->
729e4ab9
A
510 <include name="root.txt" />
511 <include name="el.txt" />
512 <include name="en.txt" />
513 <include name="en_US.txt" />
514 <include name="en_US_POSIX.txt" />
515 <include name="fi.txt" />
729e4ab9 516 <include name="ja.txt" />
729e4ab9
A
517 </fileset>
518 <fileset id="brkfiles" dir="${env.ICU4C_DIR}/source/data/brkitr">
73c04bcf
A
519 <include name="brkfiles.mk" />
520 </fileset>
46f4442e
A
521 <fileset id="supplementalData" dir="${env.ICU4C_DIR}/source/data/misc">
522 <include name="supplementalData.txt" />
523 </fileset>
729e4ab9
A
524 <fileset id="rbnf" dir="${env.ICU4C_DIR}/source/data/rbnf">
525 <include name="*.txt" />
526 </fileset>
527 <fileset id="rbnffiles" dir="${env.ICU4C_DIR}/source/data/rbnf">
528 <include name="rbnffiles.mk" />
529 </fileset>
4388f060
A
530 <fileset id="metadata" dir="${env.ICU4C_DIR}/source/data/misc">
531 <include name="metadata.txt" />
532 </fileset>
729e4ab9
A
533 <fileset id="metaZones" dir="${env.ICU4C_DIR}/source/data/misc">
534 <include name="metaZones.txt" />
535 </fileset>
536 <fileset id="windowsZones" dir="${env.ICU4C_DIR}/source/data/misc">
537 <include name="windowsZones.txt" />
46f4442e
A
538 </fileset>
539 <fileset id="likelySubtags" dir="${env.ICU4C_DIR}/source/data/misc">
540 <include name="likelySubtags.txt" />
541 </fileset>
542 <fileset id="plurals" dir="${env.ICU4C_DIR}/source/data/misc">
543 <include name="plurals.txt" />
73c04bcf 544 </fileset>
729e4ab9
A
545 <fileset id="numberingSystems" dir="${env.ICU4C_DIR}/source/data/misc">
546 <include name="numberingSystems.txt" />
547 </fileset>
548 <fileset id="keyTypeData" dir="${env.ICU4C_DIR}/source/data/misc">
549 <include name="keyTypeData.txt" />
550 <include name="timezoneTypes.txt" />
551 </fileset>
73c04bcf
A
552 </delete>
553 </target>
46f4442e 554</project>