2005-11-30 23:44:06 +00:00
|
|
|
<!DOCTYPE project [
|
2007-03-02 23:55:27 +00:00
|
|
|
<!ENTITY icu-config SYSTEM "./icu-config.xml">
|
2009-11-12 21:53:42 +00:00
|
|
|
<!ENTITY icu-locale-deprecates SYSTEM "./icu-locale-deprecates.xml">
|
2005-11-30 23:44:06 +00:00
|
|
|
]>
|
|
|
|
<!--
|
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2010-01-26 06:03:14 +00:00
|
|
|
* Copyright (C) 2005-2010, International Business Machines Corporation and *
|
2005-11-30 23:44:06 +00:00
|
|
|
* others. All Rights Reserved. *
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
-->
|
2005-12-08 23:44:39 +00:00
|
|
|
<project name="icu-build" default="all" basedir=".">
|
2005-11-30 23:44:06 +00:00
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<!-- Load environment variables -->
|
|
|
|
<property environment="env"/>
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<condition property="is.icu4j.classes.set" >
|
|
|
|
<or>
|
|
|
|
<isset property="env.ICU4J_CLASSES" />
|
|
|
|
<isset property="env.ICU4J_JAR" />
|
|
|
|
</or>
|
2007-03-05 21:44:54 +00:00
|
|
|
</condition >
|
2005-11-30 23:44:06 +00:00
|
|
|
<fail unless="is.icu4j.classes.set" message="Please set the ICU4J_CLASSES or ICU4J_JAR environment variable."/>
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<condition property="is.icu4c.dir.set" >
|
|
|
|
<isset property="env.ICU4C_DIR" />
|
2007-03-05 21:44:54 +00:00
|
|
|
</condition >
|
2005-11-30 23:44:06 +00:00
|
|
|
<fail unless="is.icu4c.dir.set" message="Please set the ICU4C_DIR environment variable."/>
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<condition property="is.cldr.dir.set" >
|
|
|
|
<isset property="env.CLDR_DIR" />
|
2007-03-05 21:44:54 +00:00
|
|
|
</condition >
|
2005-11-30 23:44:06 +00:00
|
|
|
<fail unless="is.cldr.dir.set" message="Please set the CLDR_DIR environment variable."/>
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<condition property="is.cldr.classes.set" >
|
|
|
|
<or>
|
|
|
|
<isset property="env.CLDR_CLASSES" />
|
|
|
|
<isset property="env.CLDR_JAR" />
|
|
|
|
</or>
|
2007-03-05 21:44:54 +00:00
|
|
|
</condition >
|
2005-11-30 23:44:06 +00:00
|
|
|
<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>
|
2007-03-05 21:44:54 +00:00
|
|
|
</condition >
|
2005-11-30 23:44:06 +00:00
|
|
|
<fail unless="is.utilities.classes.set" message="Please set the ICU4J_CLASSES or UTILITIES_JAR environment variable."/>
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<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">
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<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>
|
2007-03-05 21:44:54 +00:00
|
|
|
</taskdef>
|
2005-11-30 23:44:06 +00:00
|
|
|
</target>
|
|
|
|
<!-- target for generating ICU data -->
|
2010-02-08 16:46:01 +00:00
|
|
|
<target name="all" depends="locales, resfiles, resfiles_curr, resfiles_lang, resfiles_region, resfiles_zone, collation, colfiles, rbnf, rbnffiles, supplementalData, metaZones, windowsZones, likelySubtags, plurals, numberingSystems, translit, brkitr, brkfiles, keyTypeData" />
|
2007-07-23 19:41:33 +00:00
|
|
|
<!-- parallel target -->
|
|
|
|
<target name="pall" depends="init">
|
|
|
|
<parallel threadsPerProcessor ="1">
|
|
|
|
<sequential>
|
2009-11-12 21:53:42 +00:00
|
|
|
<ant target='locales' />
|
|
|
|
<ant target='resfiles' />
|
|
|
|
<ant target='resfiles_curr' />
|
|
|
|
<ant target='resfiles_lang' />
|
|
|
|
<ant target='resfiles_region' />
|
|
|
|
<ant target='resfiles_zone' />
|
2007-07-23 19:41:33 +00:00
|
|
|
</sequential>
|
|
|
|
<sequential>
|
|
|
|
<ant target='collation'>
|
|
|
|
</ant>
|
|
|
|
<ant target='colfiles'>
|
|
|
|
</ant>
|
|
|
|
</sequential>
|
2008-12-12 01:04:38 +00:00
|
|
|
<sequential>
|
|
|
|
<ant target='rbnf'>
|
|
|
|
</ant>
|
|
|
|
<ant target='rbnffiles'>
|
|
|
|
</ant>
|
|
|
|
</sequential>
|
2007-07-23 19:41:33 +00:00
|
|
|
<ant target='supplementalData'>
|
|
|
|
</ant>
|
|
|
|
<sequential>
|
|
|
|
<ant target='brkitr'>
|
|
|
|
</ant>
|
|
|
|
<ant target='brkfiles'>
|
|
|
|
</ant>
|
|
|
|
</sequential>
|
2007-07-25 23:24:55 +00:00
|
|
|
<sequential>
|
|
|
|
<ant target='translit'>
|
|
|
|
</ant>
|
2009-11-12 21:53:42 +00:00
|
|
|
<!--<ant target='trnsfiles'></ant> Not ANT-built - see
|
|
|
|
note below. -->
|
2007-07-25 23:24:55 +00:00
|
|
|
</sequential>
|
2007-07-23 19:41:33 +00:00
|
|
|
</parallel>
|
|
|
|
</target>
|
|
|
|
|
2005-11-30 23:44:06 +00:00
|
|
|
<target name="locales" depends="init,setup" description="builds locale files in ICU text format">
|
|
|
|
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" 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" />
|
|
|
|
</args>
|
2009-11-12 21:53:42 +00:00
|
|
|
<remapper>
|
|
|
|
<remap sourcePath="/Keys" targetDir="lang" />
|
|
|
|
<remap sourcePath="/Languages" targetDir="lang" />
|
|
|
|
<remap sourcePath="/LanguagesShort" targetDir="lang" />
|
|
|
|
<remap sourcePath="/Scripts" 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>
|
2005-11-30 23:44:06 +00:00
|
|
|
<!-- 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>
|
2009-11-12 21:53:42 +00:00
|
|
|
&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;
|
2005-11-30 23:44:06 +00:00
|
|
|
</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"/>
|
2007-03-05 21:44:54 +00:00
|
|
|
<arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
|
2005-11-30 23:44:06 +00:00
|
|
|
</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>
|
2007-03-05 21:44:54 +00:00
|
|
|
<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="hi__DIRECT" to="hi@collation=direct" xpath="//ldml/collations/default[@type='direct']"/>
|
|
|
|
<alias from="zh__PINYIN" to="zh@collation=pinyin" xpath="//ldml/collations/default[@type='pinyin']"/>
|
|
|
|
<alias from="zh_TW_STROKE" to="zh@collation=stroke" xpath="//ldml/collations/default[@type='stroke']"/>
|
|
|
|
<alias from="in" to="id" />
|
|
|
|
<alias from="in_ID" to="id_ID" />
|
|
|
|
<alias from="iw" to="he" />
|
2005-11-30 23:44:06 +00:00
|
|
|
<alias from="iw_IL" to="he_IL" />
|
2007-06-07 18:01:55 +00:00
|
|
|
<alias from="no" to="nb" />
|
|
|
|
<alias from="no_NO" to="nb_NO" />
|
2009-04-28 23:05:48 +00:00
|
|
|
<alias from="pa_IN" to="pa_Guru_IN" />
|
2007-06-22 23:57:38 +00:00
|
|
|
<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" />
|
2007-03-05 21:44:54 +00:00
|
|
|
<alias from="sr_BA" to="sr_Cyrl_BA" />
|
|
|
|
<alias from="sr_ME" to="sr_Cyrl_ME" />
|
|
|
|
<alias from="sr_RS" to="sr_Cyrl_RS" />
|
2006-12-11 18:33:19 +00:00
|
|
|
<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" />
|
2005-11-30 23:44:06 +00:00
|
|
|
<emptyLocale locale="de_" />
|
|
|
|
<emptyLocale locale="es_" />
|
|
|
|
<emptyLocale locale="hi_" />
|
|
|
|
<emptyLocale locale="zh_" />
|
2007-03-05 21:44:54 +00:00
|
|
|
</deprecates>
|
2005-11-30 23:44:06 +00:00
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2008-12-12 01:04:38 +00:00
|
|
|
<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>
|
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2005-12-09 02:54:28 +00:00
|
|
|
<target name="supplementalData" depends="init,setup" description="builds supplementalData.txt from supplementalData.xml">
|
2006-06-23 16:31:07 +00:00
|
|
|
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="supplementalData.txt" noArgs="true">
|
2005-11-30 23:44:06 +00:00
|
|
|
<!-- 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="-l"/>
|
|
|
|
<arg name="-f"/>
|
2005-12-10 00:42:00 +00:00
|
|
|
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
|
2005-11-30 23:44:06 +00:00
|
|
|
</args>
|
2009-11-12 21:53:42 +00:00
|
|
|
<remapper>
|
|
|
|
<remap sourcePath="/CurrencyMap" targetDir="curr" />
|
|
|
|
<remap sourcePath="/CurrencyMeta" targetDir="curr" />
|
|
|
|
</remapper>
|
2005-11-30 23:44:06 +00:00
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2010-02-02 04:55:55 +00:00
|
|
|
<target name="metaZones" depends="init,setup" description="builds metaZones.txt from metaZones.xml">
|
|
|
|
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="metaZones.txt" noArgs="true">
|
2007-11-28 20:49:58 +00:00
|
|
|
<!-- 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="-z"/>
|
|
|
|
<arg name="-f"/>
|
|
|
|
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
|
|
|
|
</args>
|
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2010-02-02 04:55:55 +00:00
|
|
|
<target name="windowsZones" depends="init,setup" description="builds windowsZones.txt from windowsZones.xml">
|
|
|
|
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" destFile="windowsZones.txt" noArgs="true">
|
2010-01-26 06:03:14 +00:00
|
|
|
<!-- 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="-i"/>
|
|
|
|
<arg name="-f"/>
|
|
|
|
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
|
|
|
|
</args>
|
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2008-06-18 16:53:06 +00:00
|
|
|
<target name="likelySubtags" depends="init,setup" description="builds likelySubtags.txt from likelySubtags.xml">
|
|
|
|
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" 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"/>
|
|
|
|
<arg name="-f"/>
|
|
|
|
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
|
|
|
|
</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.LDML2ICUConverter" 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="-r"/>
|
|
|
|
<arg name="-f"/>
|
|
|
|
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
|
|
|
|
</args>
|
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2009-01-06 17:05:48 +00:00
|
|
|
<target name="numberingSystems" depends="init,setup" description="builds numberingSystems.txt from numberingSystems.xml">
|
|
|
|
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" 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="-n"/>
|
|
|
|
<arg name="-f"/>
|
|
|
|
<arg name="-m" value="${env.CLDR_DIR}/common/supplemental" />
|
|
|
|
</args>
|
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2006-04-21 00:55:24 +00:00
|
|
|
<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"/>
|
2007-03-05 21:44:54 +00:00
|
|
|
<arg name="--supplementaldir" value="${env.CLDR_DIR}/common/supplemental" />
|
2006-04-21 00:55:24 +00:00
|
|
|
</args>
|
|
|
|
<!-- The entity include is not required for this target -->
|
2007-03-05 21:44:54 +00:00
|
|
|
<!-- http://ant.apache.org/faq.html#xml-entity-include
|
2006-04-21 00:55:24 +00:00
|
|
|
&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>
|
2006-06-23 16:31:07 +00:00
|
|
|
</target>
|
2010-02-08 16:46:01 +00:00
|
|
|
|
|
|
|
<target name="keyTypeData" depends="init,setup" description="builds keyTypeData.txt and timezoneTypes.txt from bcp47/*.xml">
|
|
|
|
<cldr-build toolName="org.unicode.cldr.icu.LDML2ICUConverter" noArgs="true">
|
|
|
|
<!-- launch the tool and generate the data after reading the config file -->
|
|
|
|
<run>
|
|
|
|
<args>
|
|
|
|
<arg name="-s" value="${env.CLDR_DIR}/common/bcp47" />
|
|
|
|
<arg name="-k" value="${env.CLDR_DIR}/common/bcp47" />
|
|
|
|
<arg name="-d" value="${env.ICU4C_DIR}/source/data/misc"/>
|
|
|
|
</args>
|
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
|
|
|
|
2006-06-23 16:31:07 +00:00
|
|
|
<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>
|
2009-04-24 20:34:20 +00:00
|
|
|
<arg name="-m" value="((?!.*(Canadian|Ethiopic).*).*)" />
|
2006-06-23 16:31:07 +00:00
|
|
|
<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 -->
|
2007-03-05 21:44:54 +00:00
|
|
|
|
2006-06-23 16:31:07 +00:00
|
|
|
</run>
|
|
|
|
</cldr-build>
|
|
|
|
</target>
|
2007-07-25 23:24:55 +00:00
|
|
|
<!-- 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">
|
2006-06-23 16:31:07 +00:00
|
|
|
<run>
|
2007-07-25 23:24:55 +00:00
|
|
|
<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"/>
|
2006-06-23 16:31:07 +00:00
|
|
|
</args>
|
|
|
|
</run>
|
|
|
|
</cldr-build>
|
2007-07-25 23:24:55 +00:00
|
|
|
</target> -->
|
2005-11-30 23:44:06 +00:00
|
|
|
<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" />
|
2008-06-20 22:19:23 +00:00
|
|
|
</fileset>
|
|
|
|
<fileset id="resfiles" dir="${env.ICU4C_DIR}/source/data/locales">
|
2005-11-30 23:44:06 +00:00
|
|
|
<include name="resfiles.mk" />
|
|
|
|
</fileset>
|
2009-11-12 21:53:42 +00:00
|
|
|
<fileset id="locales_split" dir="${env.ICU4C_DIR}/source/data" includes="curr/* lang/* region/* zone/">
|
|
|
|
</fileset>
|
2008-06-20 22:19:23 +00:00
|
|
|
<fileset id="collation" dir="${env.ICU4C_DIR}/source/data/coll">
|
2005-11-30 23:44:06 +00:00
|
|
|
<include name="*.txt" />
|
2008-06-20 22:19:23 +00:00
|
|
|
</fileset>
|
|
|
|
<fileset id="colfiles" dir="${env.ICU4C_DIR}/source/data/coll">
|
2005-11-30 23:44:06 +00:00
|
|
|
<include name="colfiles.mk" />
|
|
|
|
</fileset>
|
2007-07-25 23:24:55 +00:00
|
|
|
<fileset id="locales" dir="${env.ICU4C_DIR}/source/data/translit">
|
|
|
|
<include name="*_*.txt" />
|
|
|
|
<include name="root.txt" />
|
|
|
|
</fileset>
|
2006-04-21 00:55:24 +00:00
|
|
|
<fileset id="locales" dir="${env.ICU4C_DIR}/source/data/brkitr">
|
2007-03-05 21:44:54 +00:00
|
|
|
<!-- brkitr directory contains bunch of txt files that are not produced by LDML2ICUConverter.
|
2006-04-21 00:55:24 +00:00
|
|
|
So can't clean up everything. This needs to be updated when new files are added to xml/brkitr directory -->
|
|
|
|
<include name="root.txt, en.txt, en_US.txt, en_US_POSIX.txt, ja.txt" />
|
|
|
|
<include name="brkfiles.mk" />
|
|
|
|
</fileset>
|
2008-06-20 22:19:23 +00:00
|
|
|
<fileset id="supplementalData" dir="${env.ICU4C_DIR}/source/data/misc">
|
2006-10-27 17:55:54 +00:00
|
|
|
<include name="supplementalData.txt" />
|
2005-11-30 23:44:06 +00:00
|
|
|
</fileset>
|
2010-02-02 04:55:55 +00:00
|
|
|
<fileset id="metaZones" dir="${env.ICU4C_DIR}/source/data/misc">
|
|
|
|
<include name="metaZones.txt" />
|
2007-11-28 20:49:58 +00:00
|
|
|
</fileset>
|
2010-02-02 04:55:55 +00:00
|
|
|
<fileset id="windowsZones" dir="${env.ICU4C_DIR}/source/data/misc">
|
|
|
|
<include name="windowsZones.txt" />
|
2010-01-26 06:03:14 +00:00
|
|
|
</fileset>
|
2008-06-20 22:19:23 +00:00
|
|
|
<fileset id="likelySubtags" dir="${env.ICU4C_DIR}/source/data/misc">
|
2008-06-18 16:53:06 +00:00
|
|
|
<include name="likelySubtags.txt" />
|
|
|
|
</fileset>
|
|
|
|
<fileset id="plurals" dir="${env.ICU4C_DIR}/source/data/misc">
|
|
|
|
<include name="plurals.txt" />
|
|
|
|
</fileset>
|
2009-01-06 17:05:48 +00:00
|
|
|
<fileset id="numberingSystems" dir="${env.ICU4C_DIR}/source/data/misc">
|
|
|
|
<include name="numberingSystems.txt" />
|
|
|
|
</fileset>
|
2005-11-30 23:44:06 +00:00
|
|
|
</delete>
|
|
|
|
</target>
|
2007-03-02 23:55:27 +00:00
|
|
|
</project>
|