mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-5936 update Java data jar generation instructions in the readme
X-SVN-Rev: 23870
This commit is contained in:
parent
e691c22ef3
commit
672be8cef5
1 changed files with 15 additions and 17 deletions
|
@ -4,7 +4,7 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="Content-Style-Type" content="text/css2">
|
||||
<title>ReadMe for ICU4J</title>
|
||||
<meta name="COPYRIGHT" content="Copyright 2000-2007, International Business Machines Corporation and others. All Rights Reserved.">
|
||||
<meta name="COPYRIGHT" content="Copyright 2000-2008, International Business Machines Corporation and others. All Rights Reserved.">
|
||||
<style type="text/css">
|
||||
h3.doc { background: #CCCCFF }
|
||||
</style>
|
||||
|
@ -1743,26 +1743,24 @@ overwrite any corresponding resource files already in that directory.
|
|||
</ul>
|
||||
<h5> Procedure</h5>
|
||||
<ol>
|
||||
<li> Download and build ICU4C on a Windows machine. For instructions on
|
||||
<li> Download and build ICU4C. For instructions on
|
||||
downloading and building ICU4C, please click <a
|
||||
href="http://source.icu-project.org/repos/icu/icu/tags/release-3-8/readme.html#HowToBuild">here</a>.</li>
|
||||
<li> Change directory to <I>$icu4c_root</I>/source/tools/genrb. <I>$icu4c_root</I>
|
||||
is the root directory of ICU4C source package.</li>
|
||||
<li> Launch gendtjar.pl from that directory itself with the command <br>
|
||||
gendtjar.pl --icu-root=<I>$icu4c_root</I> --jar=<I>$jdk_home/bin</I>
|
||||
--icu4j-root=<I>$icu4j_root</I> --version=<I>$icu_version</I> <br>
|
||||
e.g: gendtjar.pl --icu-root=\work\icu --jar=\jdk1.5.0\bin
|
||||
--icu4j-root=\work\icu4j --version=3.8<br>
|
||||
Execution of gendtjar.pl script will create the required jar files in
|
||||
the $icu4c_root\source\tools\genrb\temp directory.</li>
|
||||
<li> Move icudata.jar to <I>$icu4j_root</I>/src/com/ibm/icu/impl/data
|
||||
directory.</li>
|
||||
<li> Move testdata.jar to <I>$icu4j_root</I>/src/com/ibm/dev/data
|
||||
directory.</li>
|
||||
<li> Build resources target of ant to unpack the jar files with the
|
||||
following command. <br>
|
||||
<I>$ant_home</I>/bin/ant resources</li>
|
||||
is the root directory of ICU4C source package.</li>
|
||||
<li> Run gendtjar.pl from that directory itself with the command <br>
|
||||
<tt> ./gendtjar.pl --icu-root=<I>$icu4c_root</I> --jar=<I>$jdk_home/bin</I> --icu4j-root=<I>$icu4j_root</I> </tt><br>
|
||||
e.g. <br>
|
||||
<tt> ./gendtjar.pl --icu-root=$HOME/icu4c --jar=/usr/local/bin/java/bin/ --icu4j-root=$HOME/icu4j</tt><br>
|
||||
Execution of gendtjar.pl script will create the required jar files in
|
||||
the $icu4c_root/source/tools/genrb/temp directory and then copy them to their
|
||||
final locations in the ICU4J structure,
|
||||
<tt>$icu4j_root/src/com/ibm/icu/impl/data</tt> and <tt>$icu4j_root/src/com/ibm/icu/dev/data</tt>.</li>
|
||||
<li> Build resources target of ant to unpack the jar files with the following commands: <br>
|
||||
<tt> cd <i>$icu4j_root</i></tt><br>
|
||||
<tt> ant resources</tt></li>
|
||||
</ol>
|
||||
Note: if gendtjar.pl does not work, the --verbose option can help in debugging why it went wrong.
|
||||
<h5> Generating Data from CLDR </h5>
|
||||
<I> Note: This procedure assumes that all 3 sources are in sibling directories</I>
|
||||
<ol>
|
||||
|
|
Loading…
Add table
Reference in a new issue