From 5967077f2c1a65a482d4dce21cb99cb6c99addb5 Mon Sep 17 00:00:00 2001 From: Mark Davis Date: Fri, 25 Apr 2003 01:27:27 +0000 Subject: [PATCH] ICU-0 updated instructions for more Eclipse stuff X-SVN-Rev: 11700 --- tools/unicodetools/readme.txt | 43 +++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/tools/unicodetools/readme.txt b/tools/unicodetools/readme.txt index b2e37c52a0..bf42f0600e 100644 --- a/tools/unicodetools/readme.txt +++ b/tools/unicodetools/readme.txt @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/unicodetools/Attic/readme.txt,v $ -* $Date: 2003/04/23 19:00:04 $ -* $Revision: 1.10 $ +* $Date: 2003/04/25 01:27:27 $ +* $Revision: 1.11 $ * ******************************************************************************* */ @@ -17,6 +17,7 @@ can be used to: - build the Derived Unicode files in the UCD (Unicode Character Database), - build the transformed UCA (Unicode Collation Algorithm) files needed by ICU. - run consistency checks on beta releases of the UCD and the UCA. +- build 4 chart folders on the unicode site WARNING!! @@ -33,7 +34,9 @@ WARNING!! Instructions: 0. You will need to get ICU4J on your system, using CVS. -You need both the main ICU4J and a subproject called unicodetools. See: +The rest of this will assume that you have set up CVS so that you load the ICU4J project into C:\ICU4J + +You need both the main icu4j and a subproject called unicodetools. See: http://oss.software.ibm.com/icu/develop/cvs.html @@ -43,6 +46,30 @@ Inside unicodetools, look at com/ibm/text. The main directories of interest are http://oss.software.ibm.com/icu/docs/eclipse_howto/eclipse_howto.htm +Set up Eclipse to build two projects: ICU4J and UnicodeTools: + +Project Name: ICU4J +Directory: C:\ICU4J\icu4j +Default output folder = ICU4J/classes + +Project Name: UnicodeTools +Directory: C:\ICU4J\unicodetools +Default Output Folder: UnicodeTools/classes + +After Eclipse is set up with these, exclude certain files from UnicodeTools: + +Right-Click UnicodeTools > Properties > Java Build Path > Exclusions +com/ibm/rbm/ +com/ibm/text/utility/UnicodeMapInt.java +com/ibm/text/utility/TestUtility.java +com/ibm/text/UCD/GenerateThaiBreaks-old.java/ +com/ibm/text/UCD/ProcessUnihan.java/ +com/ibm/text/UCA/WriteHTMLCollation.java/ + +UnicodeTools must also include the ICU4J project, with + +Right-Click UnicodeTools > Properties > Java Build Path > Projects + 1. In UCD, you must edit UCD_Types.java at the top, to set the directories for the build: public static final String DATA_DIR = "C:\\DATA\\"; @@ -119,6 +146,12 @@ you can omit the "version X". 4. Running UCD, you will use com.ibm.text.UCD.Main as your main class. +The Working directory has to be C:\ICU4J\unicodetools\com\ibm\text\UCD + +The same for UCA: +main: com.ibm.text.UCD.Main +directory: C:\ICU4J\unicodetools\com\ibm\text\UCA + 4a. For each version, the tools build a set of binary data in BIN that contain the information for that release. This is done automatically, or you can manually do it with the options @@ -163,4 +196,6 @@ Don't worry about any console messages except those that say FAIL. 5a. To build all the UCA files used by ICU, use the option: - java Main ICU \ No newline at end of file + java Main ICU + +6. To build all the charts, use the UCA project, with options: normalizationChart caseChart scriptChart indexChart \ No newline at end of file