Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | <!DOCTYPE project [ |
michael@0 | 2 | <!ENTITY icu-config SYSTEM "./icu-config.xml"> |
michael@0 | 3 | <!ENTITY icu-locale-deprecates SYSTEM "./icu-locale-deprecates.xml"> |
michael@0 | 4 | ]> |
michael@0 | 5 | <!-- |
michael@0 | 6 | /* |
michael@0 | 7 | ******************************************************************************* |
michael@0 | 8 | * Copyright (C) 2005-2013, International Business Machines Corporation and * |
michael@0 | 9 | * others. All Rights Reserved. * |
michael@0 | 10 | ******************************************************************************* |
michael@0 | 11 | */ |
michael@0 | 12 | --> |
michael@0 | 13 | <project name="icu-build" default="all" basedir="."> |
michael@0 | 14 | <target name="init"> |
michael@0 | 15 | <tstamp/> |
michael@0 | 16 | |
michael@0 | 17 | <!-- Load environment variables --> |
michael@0 | 18 | <property environment="env"/> |
michael@0 | 19 | |
michael@0 | 20 | <!-- Ant won't set properties that have already been set, so environment variables that have been set before won't be clobbered. --> |
michael@0 | 21 | <property name="env.ICU4C_DIR" location="../.."/> |
michael@0 | 22 | |
michael@0 | 23 | <condition property="is.cldr.dir.set" > |
michael@0 | 24 | <isset property="env.CLDR_DIR" /> |
michael@0 | 25 | </condition > |
michael@0 | 26 | <fail unless="is.cldr.dir.set" message="Please set the CLDR_DIR environment variable to the top level ICU source dir (containing 'common')."/> |
michael@0 | 27 | |
michael@0 | 28 | <available property="cldrtools.dir" value="${env.CLDR_DIR}/cldr-tools" file="${env.CLDR_DIR}/cldr-tools" type="dir"/> |
michael@0 | 29 | <available property="cldrtools.dir" value="${env.CLDR_DIR}/tools/java" file="${env.CLDR_DIR}/tools/java" type="dir"/> |
michael@0 | 30 | <fail unless="cldrtools.dir" message="Please make sure that the CLDR tools directory is checked out into CLDR_DIR"/> |
michael@0 | 31 | |
michael@0 | 32 | <available property="env.CLDR_CLASSES" value="${cldrtools.dir}/classes" file="${cldrtools.dir}/classes" type="dir"/> |
michael@0 | 33 | <available property="cldrtools.jar" value="${cldrtools.dir}/cldr.jar" file="${cldrtools.dir}/cldr.jar" type="file"/> |
michael@0 | 34 | <condition property="is.cldr.classes.set"> |
michael@0 | 35 | <or> |
michael@0 | 36 | <isset property="env.CLDR_CLASSES" /> |
michael@0 | 37 | <isset property="cldrtools.jar" /> |
michael@0 | 38 | </or> |
michael@0 | 39 | </condition> |
michael@0 | 40 | <fail unless="is.cldr.classes.set" message="CLDR classes not found in ${cldrtools.dir}. Please either set the CLDR_CLASSES environment variable or build cldr.jar."/> |
michael@0 | 41 | |
michael@0 | 42 | <echo message="java home: ${java.home}"/> |
michael@0 | 43 | <echo message="java version: ${java.version}"/> |
michael@0 | 44 | <echo message="ant java version: ${ant.java.version}"/> |
michael@0 | 45 | <echo message="${ant.version}"/> |
michael@0 | 46 | </target> |
michael@0 | 47 | <target name="setup"> |
michael@0 | 48 | <taskdef name="cldr-build" classname="org.unicode.cldr.ant.CLDRBuild"> |
michael@0 | 49 | <classpath> |
michael@0 | 50 | <pathelement path="${java.class.path}/"/> |
michael@0 | 51 | <pathelement path="${env.CLDR_CLASSES}"/> |
michael@0 | 52 | <pathelement location="${cldrtools.jar}"/> |
michael@0 | 53 | <fileset dir="${cldrtools.dir}/libs" includes="*.jar"/> |
michael@0 | 54 | </classpath> |
michael@0 | 55 | </taskdef> |
michael@0 | 56 | </target> |
michael@0 | 57 | <!-- target for generating ICU data --> |
michael@0 | 58 | <target name="all" depends="locales, collation, rbnf, supplementalData, metadata, metaZones, windowsZones, likelySubtags, plurals, numberingSystems, translit, brkitr, keyTypeData, genderList, postalCodeData, dayPeriods" /> |
michael@0 | 59 | <!-- parallel target --> |
michael@0 | 60 | <target name="pall" depends="init"> |
michael@0 | 61 | <parallel threadsPerProcessor ="1"> |
michael@0 | 62 | <sequential> |
michael@0 | 63 | <ant target='locales' /> |
michael@0 | 64 | </sequential> |
michael@0 | 65 | <sequential> |
michael@0 | 66 | <ant target='collation'> |
michael@0 | 67 | </ant> |
michael@0 | 68 | </sequential> |
michael@0 | 69 | <sequential> |
michael@0 | 70 | <ant target='rbnf'> |
michael@0 | 71 | </ant> |
michael@0 | 72 | </sequential> |
michael@0 | 73 | <ant target='supplementalData'> |
michael@0 | 74 | </ant> |
michael@0 | 75 | <sequential> |
michael@0 | 76 | <ant target='brkitr'> |
michael@0 | 77 | </ant> |
michael@0 | 78 | </sequential> |
michael@0 | 79 | <sequential> |
michael@0 | 80 | <ant target='translit'> |
michael@0 | 81 | </ant> |
michael@0 | 82 | <!--<ant target='trnsfiles'></ant> Not ANT-built - see |
michael@0 | 83 | note below. --> |
michael@0 | 84 | </sequential> |
michael@0 | 85 | </parallel> |
michael@0 | 86 | </target> |
michael@0 | 87 | |
michael@0 | 88 | <target name="locales" depends="init,setup" description="builds locale files in ICU text format"> |
michael@0 | 89 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" srcFile=".*xml" destFile=".*txt"> |
michael@0 | 90 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 91 | <run> |
michael@0 | 92 | <args> |
michael@0 | 93 | <arg name="--sourcedir" value="${env.CLDR_DIR}/common/main" /> |
michael@0 | 94 | <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/locales"/> |
michael@0 | 95 | <arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/main"/> |
michael@0 | 96 | <arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 97 | <arg name="--type" value="locales"/> |
michael@0 | 98 | <arg name="--makefile" value="resfiles.mk"/> |
michael@0 | 99 | </args> |
michael@0 | 100 | <remapper> |
michael@0 | 101 | <remap sourcePath="/Keys" targetDir="lang" /> |
michael@0 | 102 | <remap sourcePath="/Languages" targetDir="lang" /> |
michael@0 | 103 | <remap sourcePath="/LanguagesShort" targetDir="lang" /> |
michael@0 | 104 | <remap sourcePath="/Scripts" targetDir="lang" /> |
michael@0 | 105 | <remap sourcePath="/Scripts%stand-alone" targetDir="lang" /> |
michael@0 | 106 | <remap sourcePath="/Types" targetDir="lang" /> |
michael@0 | 107 | <remap sourcePath="/Variants" targetDir="lang" /> |
michael@0 | 108 | <remap sourcePath="/codePatterns" targetDir="lang" /> |
michael@0 | 109 | <remap sourcePath="/localeDisplayPattern" targetDir="lang" /> |
michael@0 | 110 | <remap sourcePath="/Countries" targetDir="region" /> |
michael@0 | 111 | <remap sourcePath="/CountriesShort" targetDir="region" /> |
michael@0 | 112 | <remap sourcePath="/Currencies" targetDir="curr" /> |
michael@0 | 113 | <remap sourcePath="/CurrencyPlurals" targetDir="curr" /> |
michael@0 | 114 | <remap sourcePath="/CurrencyUnitPatterns" targetDir="curr" /> |
michael@0 | 115 | <remap sourcePath="/currencySpacing" targetDir="curr" /> |
michael@0 | 116 | <remap sourcePath="/zoneStrings" targetDir="zone" /> |
michael@0 | 117 | </remapper> |
michael@0 | 118 | <!-- http://ant.apache.org/faq.html#xml-entity-include --> |
michael@0 | 119 | &icu-config; |
michael@0 | 120 | &icu-locale-deprecates; |
michael@0 | 121 | </run> |
michael@0 | 122 | </cldr-build> |
michael@0 | 123 | </target> |
michael@0 | 124 | <target name="collation" depends="init,setup" description="builds collation files in ICU text format"> |
michael@0 | 125 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" srcFile=".*xml" destFile=".*txt"> |
michael@0 | 126 | <run> |
michael@0 | 127 | <args> |
michael@0 | 128 | <arg name="--sourcedir" value="${env.CLDR_DIR}/common/collation" /> |
michael@0 | 129 | <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/coll"/> |
michael@0 | 130 | <arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/collation"/> |
michael@0 | 131 | <arg name="--type" value="collation"/> |
michael@0 | 132 | <arg name="--makefile" value="colfiles.mk"/> |
michael@0 | 133 | </args> |
michael@0 | 134 | <!-- http://ant.apache.org/faq.html#xml-entity-include --> |
michael@0 | 135 | &icu-config; |
michael@0 | 136 | <deprecates> |
michael@0 | 137 | <alias from="de__PHONEBOOK" to="de" rbpath="/collations/default" value="phonebook"/> |
michael@0 | 138 | <alias from="es__TRADITIONAL" to="es" rbpath="/collations/default" value="traditional"/> |
michael@0 | 139 | <alias from="in" to="id" /> |
michael@0 | 140 | <alias from="in_ID" to="id_ID" /> |
michael@0 | 141 | <alias from="iw" to="he" /> |
michael@0 | 142 | <alias from="iw_IL" to="he_IL" /> |
michael@0 | 143 | <alias from="mo" to="ro_MD" /> |
michael@0 | 144 | <alias from="no" to="nb" /> |
michael@0 | 145 | <alias from="no_NO" to="nb_NO" /> |
michael@0 | 146 | <alias from="pa_IN" to="pa_Guru_IN" /> |
michael@0 | 147 | <alias from="sh" to="sr_Latn" /> |
michael@0 | 148 | <alias from="sh_BA" to="sr_Latn_BA" /> |
michael@0 | 149 | <alias from="sh_CS" to="sr_Latn_RS" /> |
michael@0 | 150 | <alias from="sh_YU" to="sr_Latn_RS" /> |
michael@0 | 151 | <alias from="sr_BA" to="sr_Cyrl_BA" /> |
michael@0 | 152 | <alias from="sr_ME" to="sr_Cyrl_ME" /> |
michael@0 | 153 | <alias from="sr_RS" to="sr_Cyrl_RS" /> |
michael@0 | 154 | <alias from="zh_CN" to="zh_Hans_CN" /> |
michael@0 | 155 | <alias from="zh_SG" to="zh_Hans_SG" /> |
michael@0 | 156 | <alias from="zh_HK" to="zh_Hant_HK" /> |
michael@0 | 157 | <alias from="zh_MO" to="zh_Hant_MO" /> |
michael@0 | 158 | <alias from="zh_TW" to="zh_Hant_TW" /> |
michael@0 | 159 | <emptyLocale locale="de_" /> |
michael@0 | 160 | <emptyLocale locale="es_" /> |
michael@0 | 161 | </deprecates> |
michael@0 | 162 | </run> |
michael@0 | 163 | </cldr-build> |
michael@0 | 164 | </target> |
michael@0 | 165 | <target name="rbnf" depends="init,setup" description="builds rbnf files in ICU text format"> |
michael@0 | 166 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" srcFile=".*xml" destFile=".*txt"> |
michael@0 | 167 | <run> |
michael@0 | 168 | <args> |
michael@0 | 169 | <arg name="--sourcedir" value="${env.CLDR_DIR}/common/rbnf" /> |
michael@0 | 170 | <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/rbnf"/> |
michael@0 | 171 | <arg name="--specialsdir" value="${env.ICU4C_DIR}/source/data/xml/rbnf"/> |
michael@0 | 172 | <arg name="--type" value="rbnf" /> |
michael@0 | 173 | <arg name="--makefile" value="rbnffiles.mk"/> |
michael@0 | 174 | </args> |
michael@0 | 175 | <!-- http://ant.apache.org/faq.html#xml-entity-include --> |
michael@0 | 176 | &icu-config; |
michael@0 | 177 | </run> |
michael@0 | 178 | </cldr-build> |
michael@0 | 179 | </target> |
michael@0 | 180 | <target name="supplementalData" depends="init,setup" description="builds supplementalData.txt from supplementalData.xml"> |
michael@0 | 181 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="supplementalData.txt" noArgs="true"> |
michael@0 | 182 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 183 | <run> |
michael@0 | 184 | <args> |
michael@0 | 185 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 186 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 187 | <arg name="-t" value="supplementalData"/> |
michael@0 | 188 | </args> |
michael@0 | 189 | <remapper> |
michael@0 | 190 | <remap sourcePath="/CurrencyMap" targetDir="curr" /> |
michael@0 | 191 | <remap sourcePath="/CurrencyMeta" targetDir="curr" /> |
michael@0 | 192 | </remapper> |
michael@0 | 193 | </run> |
michael@0 | 194 | </cldr-build> |
michael@0 | 195 | </target> |
michael@0 | 196 | <target name="metadata" depends="init,setup" description="builds metadata.txt from supplementalMetadata.xml"> |
michael@0 | 197 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="metadata.txt" noArgs="true"> |
michael@0 | 198 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 199 | <run> |
michael@0 | 200 | <args> |
michael@0 | 201 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 202 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 203 | <arg name="-t" value="metadata"/> |
michael@0 | 204 | </args> |
michael@0 | 205 | </run> |
michael@0 | 206 | </cldr-build> |
michael@0 | 207 | </target> |
michael@0 | 208 | <target name="metaZones" depends="init,setup" description="builds metaZones.txt from metaZones.xml"> |
michael@0 | 209 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="metaZones.txt" noArgs="true"> |
michael@0 | 210 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 211 | <run> |
michael@0 | 212 | <args> |
michael@0 | 213 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 214 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 215 | <arg name="-t" value="metaZones"/> |
michael@0 | 216 | </args> |
michael@0 | 217 | </run> |
michael@0 | 218 | </cldr-build> |
michael@0 | 219 | </target> |
michael@0 | 220 | <target name="windowsZones" depends="init,setup" description="builds windowsZones.txt from windowsZones.xml"> |
michael@0 | 221 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="windowsZones.txt" noArgs="true"> |
michael@0 | 222 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 223 | <run> |
michael@0 | 224 | <args> |
michael@0 | 225 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 226 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 227 | <arg name="-t" value="windowsZones"/> |
michael@0 | 228 | </args> |
michael@0 | 229 | </run> |
michael@0 | 230 | </cldr-build> |
michael@0 | 231 | </target> |
michael@0 | 232 | <target name="likelySubtags" depends="init,setup" description="builds likelySubtags.txt from likelySubtags.xml"> |
michael@0 | 233 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="likelySubtags.txt" noArgs="true"> |
michael@0 | 234 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 235 | <run> |
michael@0 | 236 | <args> |
michael@0 | 237 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 238 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 239 | <arg name="-t" value="likelySubtags"/> |
michael@0 | 240 | </args> |
michael@0 | 241 | </run> |
michael@0 | 242 | </cldr-build> |
michael@0 | 243 | </target> |
michael@0 | 244 | <target name="plurals" depends="init,setup" description="builds plurals.txt from plurals.xml"> |
michael@0 | 245 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="plurals.txt" noArgs="true"> |
michael@0 | 246 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 247 | <run> |
michael@0 | 248 | <args> |
michael@0 | 249 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 250 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 251 | <arg name="-t" value="plurals"/> |
michael@0 | 252 | </args> |
michael@0 | 253 | </run> |
michael@0 | 254 | </cldr-build> |
michael@0 | 255 | </target> |
michael@0 | 256 | <target name="numberingSystems" depends="init,setup" description="builds numberingSystems.txt from numberingSystems.xml"> |
michael@0 | 257 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="numberingSystems.txt" noArgs="true"> |
michael@0 | 258 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 259 | <run> |
michael@0 | 260 | <args> |
michael@0 | 261 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 262 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 263 | <arg name="-t" value="numberingSystems"/> |
michael@0 | 264 | </args> |
michael@0 | 265 | </run> |
michael@0 | 266 | </cldr-build> |
michael@0 | 267 | </target> |
michael@0 | 268 | <target name="genderList" depends="init,setup" description="builds genderList.txt from genderList.xml"> |
michael@0 | 269 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="genderList.txt" noArgs="true"> |
michael@0 | 270 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 271 | <run> |
michael@0 | 272 | <args> |
michael@0 | 273 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 274 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 275 | <arg name="-t" value="genderList"/> |
michael@0 | 276 | </args> |
michael@0 | 277 | </run> |
michael@0 | 278 | </cldr-build> |
michael@0 | 279 | </target> |
michael@0 | 280 | <target name="postalCodeData" depends="init,setup" description="builds postalCodeData.txt from postalCodeData.xml"> |
michael@0 | 281 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="postalCodeData.txt" noArgs="true"> |
michael@0 | 282 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 283 | <run> |
michael@0 | 284 | <args> |
michael@0 | 285 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 286 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 287 | <arg name="-t" value="postalCodeData"/> |
michael@0 | 288 | </args> |
michael@0 | 289 | </run> |
michael@0 | 290 | </cldr-build> |
michael@0 | 291 | </target> |
michael@0 | 292 | <target name="dayPeriods" depends="init,setup" description="builds dayPeriods.txt from dayPeriods.xml"> |
michael@0 | 293 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" destFile="dayPeriods.txt" noArgs="true"> |
michael@0 | 294 | <!-- launch the tool and generate the data after reading the config file --> |
michael@0 | 295 | <run> |
michael@0 | 296 | <args> |
michael@0 | 297 | <arg name="-s" value="${env.CLDR_DIR}/common/supplemental" /> |
michael@0 | 298 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 299 | <arg name="-t" value="dayPeriods"/> |
michael@0 | 300 | </args> |
michael@0 | 301 | </run> |
michael@0 | 302 | </cldr-build> |
michael@0 | 303 | </target> |
michael@0 | 304 | <target name="brkitr" depends="init,setup" description="builds break iterator files in ICU text format"> |
michael@0 | 305 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" srcFile=".*xml" destFile=".*txt"> |
michael@0 | 306 | <run> |
michael@0 | 307 | <args> |
michael@0 | 308 | <arg name="--sourcedir" value="${env.ICU4C_DIR}/source/data/xml/brkitr"/> |
michael@0 | 309 | <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/brkitr"/> |
michael@0 | 310 | <arg name="--type" value="brkitr" /> |
michael@0 | 311 | <arg name="--makefile" value="brkfiles.mk"/> |
michael@0 | 312 | </args> |
michael@0 | 313 | <!-- The entity include is not required for this target --> |
michael@0 | 314 | <!-- http://ant.apache.org/faq.html#xml-entity-include |
michael@0 | 315 | &icu-config; |
michael@0 | 316 | --> |
michael@0 | 317 | </run> |
michael@0 | 318 | </cldr-build> |
michael@0 | 319 | </target> |
michael@0 | 320 | |
michael@0 | 321 | <target name="keyTypeData" depends="init,setup" description="builds keyTypeData.txt and timezoneTypes.txt from bcp47/*.xml"> |
michael@0 | 322 | <cldr-build toolName="org.unicode.cldr.icu.NewLdml2IcuConverter" noArgs="true"> |
michael@0 | 323 | <run> |
michael@0 | 324 | <args> |
michael@0 | 325 | <arg name="-s" value="${env.CLDR_DIR}/common/bcp47" /> |
michael@0 | 326 | <arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/> |
michael@0 | 327 | <arg name="-t" value="keyTypeData"/> |
michael@0 | 328 | </args> |
michael@0 | 329 | </run> |
michael@0 | 330 | </cldr-build> |
michael@0 | 331 | </target> |
michael@0 | 332 | |
michael@0 | 333 | <target name="translit" depends="init,setup" description="builds collation files in ICU text format"> |
michael@0 | 334 | <cldr-build toolName="org.unicode.cldr.icu.ConvertTransforms" srcFile=".*xml" destFile=".*txt"> |
michael@0 | 335 | <run> |
michael@0 | 336 | <args> |
michael@0 | 337 | <arg name="-m" value="((?!.*(Canadian|Ethiopic).*).*)" /> |
michael@0 | 338 | <arg name="--sourcedir" value="${env.CLDR_DIR}/common/transforms" /> |
michael@0 | 339 | <arg name="--destdir" value="${env.ICU4C_DIR}/source/data/translit"/> |
michael@0 | 340 | <arg name="--commentSkip"/> |
michael@0 | 341 | </args> |
michael@0 | 342 | <!-- http://ant.apache.org/faq.html#xml-entity-include --> |
michael@0 | 343 | |
michael@0 | 344 | </run> |
michael@0 | 345 | </cldr-build> |
michael@0 | 346 | </target> |
michael@0 | 347 | <!-- we don't generate en.txt or el.txt - so don't change trnsfiles.mk for now. --> |
michael@0 | 348 | <!-- |
michael@0 | 349 | <target name="trnsfiles" depends="init, setup" description="builds trnsfiles.mk"> |
michael@0 | 350 | <cldr-build toolName="org.unicode.cldr.icu.ConvertTransforms" srcFile=".*xml" destFile="trnsfiles.mk" noArgs="true"> |
michael@0 | 351 | <run> |
michael@0 | 352 | <args> [ double hyphen not allowed in comments - transpose -" to fix below ] |
michael@0 | 353 | <arg name=-"-sourcedir" value="${env.CLDR_DIR}/common/transforms" /> |
michael@0 | 354 | <arg name=-"-destdir" value="${env.ICU4C_DIR}/source/data/translit"/> |
michael@0 | 355 | <arg name=-"-commentSkip"/> |
michael@0 | 356 | <arg name=-"-writeIndex"/> |
michael@0 | 357 | </args> |
michael@0 | 358 | </run> |
michael@0 | 359 | </cldr-build> |
michael@0 | 360 | </target> --> |
michael@0 | 361 | <target name="clean" depends="init, setup" description="deletes all txt files and mk files from coll and locales directories"> |
michael@0 | 362 | <delete> |
michael@0 | 363 | <fileset id="locales" dir="${env.ICU4C_DIR}/source/data/locales"> |
michael@0 | 364 | <include name="*.txt" /> |
michael@0 | 365 | </fileset> |
michael@0 | 366 | <fileset id="resfiles" dir="${env.ICU4C_DIR}/source/data/locales"> |
michael@0 | 367 | <include name="resfiles.mk" /> |
michael@0 | 368 | </fileset> |
michael@0 | 369 | <fileset id="locales_split" dir="${env.ICU4C_DIR}/source/data"> |
michael@0 | 370 | <include name="curr/*.txt" /> |
michael@0 | 371 | <include name="curr/resfiles.mk" /> |
michael@0 | 372 | <include name="lang/*.txt" /> |
michael@0 | 373 | <include name="lang/resfiles.mk" /> |
michael@0 | 374 | <include name="region/*.txt" /> |
michael@0 | 375 | <include name="region/resfiles.mk" /> |
michael@0 | 376 | <include name="zone/*.txt" /> |
michael@0 | 377 | <include name="zone/resfiles.mk" /> |
michael@0 | 378 | </fileset> |
michael@0 | 379 | <fileset id="collation" dir="${env.ICU4C_DIR}/source/data/coll"> |
michael@0 | 380 | <include name="*.txt" /> |
michael@0 | 381 | </fileset> |
michael@0 | 382 | <fileset id="colfiles" dir="${env.ICU4C_DIR}/source/data/coll"> |
michael@0 | 383 | <include name="colfiles.mk" /> |
michael@0 | 384 | </fileset> |
michael@0 | 385 | <fileset id="translit" dir="${env.ICU4C_DIR}/source/data/translit"> |
michael@0 | 386 | <include name="*_*.txt" /> |
michael@0 | 387 | <include name="root.txt" /> |
michael@0 | 388 | </fileset> |
michael@0 | 389 | <fileset id="brkitr" dir="${env.ICU4C_DIR}/source/data/brkitr"> |
michael@0 | 390 | <!-- brkitr directory contains bunch of txt files that are not produced by LDML2ICUConverter. |
michael@0 | 391 | So can't clean up everything. This needs to be updated when new files are added to xml/brkitr directory --> |
michael@0 | 392 | <include name="root.txt" /> |
michael@0 | 393 | <include name="el.txt" /> |
michael@0 | 394 | <include name="en.txt" /> |
michael@0 | 395 | <include name="en_US.txt" /> |
michael@0 | 396 | <include name="en_US_POSIX.txt" /> |
michael@0 | 397 | <include name="fi.txt" /> |
michael@0 | 398 | <include name="ja.txt" /> |
michael@0 | 399 | </fileset> |
michael@0 | 400 | <fileset id="brkfiles" dir="${env.ICU4C_DIR}/source/data/brkitr"> |
michael@0 | 401 | <include name="brkfiles.mk" /> |
michael@0 | 402 | </fileset> |
michael@0 | 403 | <fileset id="supplementalData" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 404 | <include name="supplementalData.txt" /> |
michael@0 | 405 | </fileset> |
michael@0 | 406 | <fileset id="rbnf" dir="${env.ICU4C_DIR}/source/data/rbnf"> |
michael@0 | 407 | <include name="*.txt" /> |
michael@0 | 408 | </fileset> |
michael@0 | 409 | <fileset id="rbnffiles" dir="${env.ICU4C_DIR}/source/data/rbnf"> |
michael@0 | 410 | <include name="rbnffiles.mk" /> |
michael@0 | 411 | </fileset> |
michael@0 | 412 | <fileset id="metadata" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 413 | <include name="metadata.txt" /> |
michael@0 | 414 | </fileset> |
michael@0 | 415 | <fileset id="metaZones" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 416 | <include name="metaZones.txt" /> |
michael@0 | 417 | </fileset> |
michael@0 | 418 | <fileset id="windowsZones" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 419 | <include name="windowsZones.txt" /> |
michael@0 | 420 | </fileset> |
michael@0 | 421 | <fileset id="likelySubtags" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 422 | <include name="likelySubtags.txt" /> |
michael@0 | 423 | </fileset> |
michael@0 | 424 | <fileset id="plurals" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 425 | <include name="plurals.txt" /> |
michael@0 | 426 | </fileset> |
michael@0 | 427 | <fileset id="numberingSystems" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 428 | <include name="numberingSystems.txt" /> |
michael@0 | 429 | </fileset> |
michael@0 | 430 | <fileset id="keyTypeData" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 431 | <include name="keyTypeData.txt" /> |
michael@0 | 432 | <include name="timezoneTypes.txt" /> |
michael@0 | 433 | </fileset> |
michael@0 | 434 | <fileset id="genderList" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 435 | <include name="genderList.txt" /> |
michael@0 | 436 | </fileset> |
michael@0 | 437 | <fileset id="postalCodeData" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 438 | <include name="postalCodeData.txt" /> |
michael@0 | 439 | </fileset> |
michael@0 | 440 | <fileset id="dayPeriods" dir="${env.ICU4C_DIR}/source/data/misc"> |
michael@0 | 441 | <include name="dayPeriods.txt" /> |
michael@0 | 442 | </fileset> |
michael@0 | 443 | </delete> |
michael@0 | 444 | </target> |
michael@0 | 445 | </project> |