]>
Commit | Line | Data |
---|---|---|
729e4ab9 | 1 | ******************************************************************************** |
4388f060 | 2 | * Copyright (C) 2008-2012, International Business Machines Corporation * |
729e4ab9 A |
3 | * and others. All Rights Reserved. * |
4 | * * | |
5 | * 6/26/08 - Created by Brian Rower - heavy copying from ICU4J readme & others * | |
6 | * * | |
7 | ******************************************************************************** | |
8 | ||
9 | Procedures for building ICU4J data from ICU4C data: | |
10 | ||
11 | *Setup* | |
12 | ||
13 | In the following, | |
14 | $icu4c_root is the ICU4C root directory | |
15 | $icu4j_root is the ICU4J root directory | |
16 | $jdk_bin is the JDK bin directory (for the jar tool) | |
17 | ||
18 | 1. Download and build ICU4C. For more instructions on downloading and building | |
19 | ICU4C, see the ICU4C readme at: | |
20 | http://source.icu-project.org/repos/icu/icu/trunk/readme.html#HowToBuild | |
21 | (Windows: build as x86, Release otherwise you will have to set 'CFG' differently below.) | |
22 | ||
23 | *NOTE* You should do a full rebuild after any data changes. | |
24 | ||
25 | ||
26 | 2. Step 2 depends on whether you are on a Windows or a Unix-type | |
27 | platform. | |
28 | ||
29 | *Windows* | |
30 | ||
31 | 2a. On the command line, cd to $icu4c_root\source\data. | |
32 | ||
33 | 2b. On the command line, | |
34 | nmake -f makedata.mak ICUMAKE=$icu4c_root\source\data\ CFG=x86\Release JAR="$jdk_bin\jar" ICU4J_ROOT=$icu4j_root icu4j-data-install | |
35 | ||
36 | Continue with step 3 below, in Java: | |
37 | ||
38 | ||
39 | *Linux* | |
40 | ||
41 | $icu4c_build is the ICU4C root build directory, | |
42 | which is $icu4c_root/source in an in-source build | |
43 | ||
44 | 2c. On the command line, cd to $icu4c_build | |
45 | ||
46 | 2d. Do | |
47 | make JAR=$jdk_bin/jar ICU4J_ROOT=$icu4j_root icu4j-data-install | |
48 | ||
49 | (You can omit the JAR if it's just jar.) | |
50 | ||
51 | Continue with step 3, in Java: | |
52 | ||
4388f060 A |
53 | Step 2 on either platform will produce two files: icudata.jar and |
54 | icutzdata.jar in $icu4j_root/main/shared/data. | |
55 | ||
729e4ab9 A |
56 | *Java* |
57 | ||
4388f060 A |
58 | 3. After the ICU4C-side steps above, build the main target of the |
59 | ICU4J ant build to unpack the jar files with the following commands: | |
729e4ab9 A |
60 | |
61 | cd $icu4j_root | |
4388f060 | 62 | ant main |