]>
Commit | Line | Data |
---|---|---|
73c04bcf A |
1 | # *************************************************************************** |
2 | # * | |
3 | # * Copyright (C) 2005, International Business Machines | |
4 | # * Corporation and others. All Rights Reserved. | |
5 | # * | |
6 | # *************************************************************************** | |
7 | ||
8 | Steps for building ICU data from CLDR: | |
9 | ||
10 | Users of CLDR: | |
11 | 1. Download cldrtools.zip from the CLDR website (http://www.unicode.org/cldr/repository_access.html) and unzip in a directory | |
12 | 2. Download cldr.zip from the CLDR website (same as above) and unzip in cldr directory | |
13 | 3. Check out ICU from ICU CVS repository http://www.ibm.com/software/globalization/icu/repository.jsp | |
14 | 4. Set the required environment variables | |
15 | export JAVA_HOME=<path>/java | |
16 | export ANT_OPTS="-DCLDR_DTD_CACHE=<path>/temp/cldrdtd" | |
17 | export CLDR_DIR=<path>/cldr | |
18 | export CLDR_JAR=<path>/cldr.jar | |
19 | export ICU4C_DIR=<path>/icu | |
20 | export ICU4J_JAR=<path>/icu4j.jar | |
21 | export UTILITIES_JAR=<path>/utilities.jar | |
22 | 5. Change directory to <path>/icu/source/data/ | |
23 | 6. Enter command | |
24 | <path>/ant/bin/ant clean all | |
25 | ||
26 | Developers of CLDR: | |
27 | 1. Check out CLDR from the CVS repository http://www.unicode.org/cldr/repository_access.html and build the tools. | |
28 | 2. Check out ICU from ICU CVS repository http://www.ibm.com/software/globalization/icu/repository.jsp and build it. | |
29 | 3. Check out ICU4J from ICU CVS repository http://www.ibm.com/software/globalization/icu/repository.jsp and build it. | |
30 | 4. Set the required environment variables | |
31 | export JAVA_HOME=<path>/java | |
32 | export ANT_OPTS="-DCLDR_DTD_CACHE=<path>/temp/cldrdtd" | |
33 | export CLDR_DIR=<path>/cldr | |
34 | export CLDR_CLASSES=<path>/cldr/tools/java/classes | |
35 | export ICU4C_DIR=<path>/icu | |
36 | export ICU4J_CLASSES=<path>/icu4j/classes | |
37 | 5. Change directory to <path>/icu/source/data/ | |
38 | 6. Enter command | |
39 | <path>/ant/bin/ant clean all | |
40 | ||
41 | Debugging in Eclipse: | |
42 | 1. From Eclipse select Run > Run from toolbar | |
43 | 2. Click New button | |
44 | 3. Go to Main tab and enter | |
45 | Name: Ant_Launcher | |
46 | Project: cldr | |
47 | Main class: org.apache.tools.ant.launch.Launcher | |
48 | 4. Go to Arguments tab and enter | |
49 | Program Arguments: -buildfile c:\work\cldr\tools\java\build.xml icu4c | |
50 | VM Arguments: -classpath C:\work\apache-ant-1.6.1\lib\ant-launcher.jar | |
51 | -Dant.home=C:\work\apache-ant-1.6.1 | |
52 | -DCLDR_DTD_CACHE=/work/temp/cldrdtd/ | |
53 | 5. Go to Environment tag and create new variables | |
54 | CLDR_DIR=<path>/cldr | |
55 | CLDR_CLASSES=<path>/cldr/tools/java/classes | |
56 | ICU4C_DIR=/work/icu | |
57 | ICU4J_CLASSES=<path>/icu4j/classes | |
58 | 6. Set a break point in CLDRBuild or the tool class that needs to be debugged. |