intl/icu/source/data/icu4j-readme.txt

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/data/icu4j-readme.txt	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,64 @@
     1.4 +********************************************************************************
     1.5 +* Copyright (C) 2008-2012, International Business Machines Corporation         *
     1.6 +* and others. All Rights Reserved.                                             *
     1.7 +*                                                                              *
     1.8 +* 6/26/08 - Created by Brian Rower - heavy copying from ICU4J readme & others  *
     1.9 +*                                                                              *
    1.10 +********************************************************************************
    1.11 +
    1.12 +Procedures for building ICU4J data from ICU4C data:
    1.13 +
    1.14 +*Setup*
    1.15 +
    1.16 +In the following,
    1.17 +        $icu4c_root is the ICU4C root directory
    1.18 +        $icu4j_root is the ICU4J root directory
    1.19 +        $jdk_bin is the JDK bin directory (for the jar tool)
    1.20 +
    1.21 +1. Download and build ICU4C. For more instructions on downloading and building
    1.22 +        ICU4C, see the ICU4C readme at:
    1.23 +        http://source.icu-project.org/repos/icu/icu/trunk/readme.html#HowToBuild
    1.24 +	(Windows: build as x86, Release otherwise you will have to set 'CFG' differently below.)
    1.25 +
    1.26 +	*NOTE* You should do a full rebuild after any data changes.
    1.27 +1a.  If you didn't download from Subversion, you will also need the "icu4c-*-data.zip" file.  Unpack this file and replace the icu/source/data directory's contents with the contents of the data directory from the zip file.  
    1.28 +
    1.29 +
    1.30 +2. Step 2 depends on whether you are on a Windows or a Unix-type
    1.31 +platform.
    1.32 +
    1.33 +*Windows* 
    1.34 +
    1.35 +2a. On the command line, cd to $icu4c_root\source\data.
    1.36 +
    1.37 +2b. On the command line,
    1.38 +        nmake -f makedata.mak ICUMAKE=$icu4c_root\source\data\  CFG=x86\Release JAR="$jdk_bin\jar" ICU4J_ROOT=$icu4j_root  icu4j-data-install
    1.39 +
    1.40 +       Continue with step 3 below, in Java:
    1.41 +
    1.42 +
    1.43 +*Linux*
    1.44 +
    1.45 +        $icu4c_build is the ICU4C root build directory,
    1.46 +        which is $icu4c_root/source in an in-source build.
    1.47 +        (in other words, $icu4c_build is where you ran runConfigureICU or configure)
    1.48 +
    1.49 +2c. On the command line, cd to $icu4c_build/data
    1.50 +
    1.51 +2d. Do
    1.52 +        make JAR=$jdk_bin/jar ICU4J_ROOT=$icu4j_root icu4j-data-install
    1.53 +
    1.54 +       (You can omit the JAR if it's just jar.)
    1.55 +
    1.56 +	Continue with step 3, in Java:
    1.57 +
    1.58 +Step 2 on either platform will produce two files: icudata.jar and
    1.59 +icutzdata.jar in $icu4j_root/main/shared/data.
    1.60 +
    1.61 +*Java*
    1.62 +
    1.63 +3. After the ICU4C-side steps above, build the main target of the
    1.64 +        ICU4J ant build to unpack the jar files with the following commands:
    1.65 +
    1.66 +        cd $icu4j_root
    1.67 +        ant main

mercurial