• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This directory contains tools for ICU updates.
2
3Data update tools
4=================
5
6updateicudata.py
7  - regerates the ICU data files.
8    ICU and CTS tests for libcore should be run before and
9    after.
10
11See $ANDROID_BUILD_TOP/system/timezone for tools related to time zone updates.
12
13Source code updates
14===================
15
16The source code in android_icu4j is generated from the code in icu4j. Do not change the code
17in android_icu4j directly: instead you change the icu4j source or the rules used to generate
18android_icu4j.
19
20All changes made to icu4j should be accompanied by changes in android_icu4j and vice versa.
21
22Applying patches to ICU4J
23-------------------------
24
25After making changes to icu4j (e.g. after applying upstream patches):
26
27source build/envsetup.sh
28lunch
29
30cd external/icu/tools/srcgen
31./generate_android_icu4j.sh
32
33The code in android_icu4j will be regenerated and should contain the changes you made
34in icu4j. Confirm the diffs are what you intended. Commit both at the same time.
35
36Modifying the code gen
37----------------------
38
39android_icu4j is generated using a Java tool found in tools/srcgen.
40
41The "rules" that transform the source are configured in
42src/main/java/com/android/icu4j/srcgen/Icu4jTransform.java.
43
44