From 56bb01ba84f072ac38e9fdea4abdfb13bdd7c906 Mon Sep 17 00:00:00 2001 From: David Beaumont Date: Tue, 2 Jun 2020 07:32:15 +0000 Subject: [PATCH] ICU-21142 Moving CLDR jar file to common location --- tools/cldr/cldr-to-icu/README.txt | 14 ++-- tools/cldr/cldr-to-icu/build-icu-data.xml | 3 + tools/cldr/cldr-to-icu/pom.xml | 32 +++------ tools/cldr/{cldr-to-icu => }/lib/README.txt | 72 ++++++++++--------- .../{cldr-to-icu => lib}/install-cldr-jars.sh | 26 ++----- tools/cldr/lib/pom.xml | 47 ++++++++++++ 6 files changed, 111 insertions(+), 83 deletions(-) rename tools/cldr/{cldr-to-icu => }/lib/README.txt (59%) rename tools/cldr/{cldr-to-icu => lib}/install-cldr-jars.sh (80%) create mode 100644 tools/cldr/lib/pom.xml diff --git a/tools/cldr/cldr-to-icu/README.txt b/tools/cldr/cldr-to-icu/README.txt index ec9ce25470a..750f41a065d 100644 --- a/tools/cldr/cldr-to-icu/README.txt +++ b/tools/cldr/cldr-to-icu/README.txt @@ -16,7 +16,9 @@ Requirements Important directories --------------------- -CLDR_ROOT = The top-level direcetory for the CLDR project, containing CLDR +ICU_ROOT = The top-level directory for this ICU project installation. + +CLDR_ROOT = The top-level directory for the CLDR project, containing CLDR code and non-production data. Usually obtained from: https://github.com/unicode-org/cldr @@ -28,6 +30,7 @@ CLDR_DIR = The top-level directory for the CLDR production data (typically In Posix systems, it's best to set these as exported shell variables, and any following instructions assume they have been set accordingly: +$ export ICU_ROOT=/path/to/icu $ export CLDR_ROOT=/path/to/cldr $ export CLDR_DIR=/path/to/cldr-staging/production @@ -47,14 +50,13 @@ based system, this should be as simple as: $ sudo apt-get install maven ant -You also need to install two additional CLDR JAR files in a local Maven -repository, which can be achieved by either running: +You must also install an additional CLDR JAR file the local Maven repository at +$ICU_ROOT/tools/cldr/lib (see the README.txt in that directory for more +information). +$ cd "$ICU_ROOT/tools/cldr/lib" $ install-cldr-jars.sh "$CLDR_ROOT" -from this directory, or following the instructions in lib/README.txt. This -step must be repeated if you update the code in the CLDR project you are -using, or are using multiple versions of the CLDR code during development. Generating all ICU data ----------------------- diff --git a/tools/cldr/cldr-to-icu/build-icu-data.xml b/tools/cldr/cldr-to-icu/build-icu-data.xml index 518fa12d414..5917adf7bf1 100644 --- a/tools/cldr/cldr-to-icu/build-icu-data.xml +++ b/tools/cldr/cldr-to-icu/build-icu-data.xml @@ -2,6 +2,9 @@ License & terms of use: http://www.unicode.org/copyright.html --> + + org.unicode.icu + cldr-lib + 1.0 + ../lib + + UTF-8 - org.unicode.icu + cldr-to-icu 1.0-SNAPSHOT @@ -70,32 +78,12 @@ - - - - local-maven-repo - file:///${project.basedir}/lib - - - - - - org.unicode.cldr - cldr-api - 0.1-SNAPSHOT - - - com.ibm.icu - icu-utilities - 0.1-SNAPSHOT - - com.ibm.icu icu4j - 64.2 + 67.1 + + 4.0.0 + + + + + pom + + + org.unicode.icu + cldr-lib + 1.0 + + + + + local-maven-repo + file://${project.basedir}/${project.parent.relativePath} + + + + + + + org.unicode.cldr + cldr-api + 0.1-SNAPSHOT + + + +