# *************************************************************************** # * # * Copyright (C) 2005, International Business Machines # * Corporation and others. All Rights Reserved. # * # *************************************************************************** Steps for building ICU data from CLDR: Users of CLDR: 1. Download cldrtools.zip from the CLDR website (http://www.unicode.org/cldr/repository_access.html) and unzip in a directory 2. Download cldr.zip from the CLDR website (same as above) and unzip in cldr directory 3. Check out ICU from ICU CVS repository http://www.ibm.com/software/globalization/icu/repository.jsp 4. Set the required environment variables export JAVA_HOME=/java export ANT_OPTS="-DCLDR_DTD_CACHE=/temp/cldrdtd" export CLDR_DIR=/cldr export CLDR_JAR=/cldr.jar export ICU4C_DIR=/icu export ICU4J_JAR=/icu4j.jar export UTILITIES_JAR=/utilities.jar 5. Change directory to /icu/source/data/ 6. Enter command /ant/bin/ant clean all Developers of CLDR: 1. Check out CLDR from the CVS repository http://www.unicode.org/cldr/repository_access.html and build the tools. 2. Check out ICU from ICU CVS repository http://www.ibm.com/software/globalization/icu/repository.jsp and build it. 3. Check out ICU4J from ICU CVS repository http://www.ibm.com/software/globalization/icu/repository.jsp and build it. 4. Set the required environment variables export JAVA_HOME=/java export ANT_OPTS="-DCLDR_DTD_CACHE=/temp/cldrdtd" export CLDR_DIR=/cldr export CLDR_CLASSES=/cldr/tools/java/classes export ICU4C_DIR=/work/icu export ICU4J_CLASSES=/icu4j/classes 5. Change directory to /icu/source/data/ 6. Enter command /ant/bin/ant clean all Debugging in Eclipse: 1. From Eclipse select Run > Run from toolbar 2. Click New button 3. Go to Main tab and enter Name: Ant_Launcher Project: cldr Main class: org.apache.tools.ant.launch.Launcher 4. Go to Arguments tab and enter Program Arguments: -buildfile c:\work\cldr\tools\java\build.xml icu4c VM Arguments: -classpath C:\work\apache-ant-1.6.1\lib\ant-launcher.jar -Dant.home=C:\work\apache-ant-1.6.1 -DCLDR_DTD_CACHE=/work/temp/cldrdtd/ 5. Go to Environment tag and create new variables CLDR_DIR=/cldr CLDR_CLASSES=/cldr/tools/java/classes ICU4C_DIR=/work/icu ICU4J_CLASSES=/icu4j/classes 6. Set a break point in CLDRBuild or the tool class that needs to be debugged.