]> granicus.if.org Git - icu/commitdiff
ICU-9945 Updated currency data file location. Corrected errors in readme.txt. Added...
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 14 Feb 2013 23:20:15 +0000 (23:20 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 14 Feb 2013 23:20:15 +0000 (23:20 +0000)
X-SVN-Rev: 33229

tools/currency/build.xml
tools/currency/readme.txt
tools/currency/src/com/ibm/icu/dev/tool/currency/NumericCodeData.java

index 4c316c6a1b44289ef232dbe6f98fabd618410c69..c3124ebf8c7c56f7a4c2e5ee2b654688fd0d97c0 100644 (file)
@@ -1,6 +1,6 @@
 <!--
 *******************************************************************************
-* Copyright (C) 2012, International Business Machines Corporation and         *
+* Copyright (C) 2012-2013, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 -->
@@ -11,9 +11,9 @@
     <property name="res.dir" value="${out.dir}/res"/>
     <property name="xml.dir" value="${out.dir}/xml"/>
 
-    <property name="base.url" value="http://www.currency-iso.org/"/>
+    <property name="base.url" value="http://www.currency-iso.org/content/dam/isocy/downloads/"/>
     <property name="current.xml" value="dl_iso_table_a1.xml"/>
-    <property name="historic.xml" value="dl_iso_tables_a3.xml"/>
+    <property name="historic.xml" value="dl_iso_table_a3.xml"/>
 
 <target name="build" depends="check, resource" description="Verify ICU's local data and generate ISO 4217 alpha-numeric code mapping data resource"/>
 
index c0d015404882de1e196937fdfbb6fea17c6133d2..f755507a95c4e1ba07e2ad9b8bf3e27cbca99524 100644 (file)
@@ -1,5 +1,5 @@
 *******************************************************************************
-* Copyright (C) 2012, International Business Machines Corporation and         *
+* Copyright (C) 2012-2013, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 
@@ -38,19 +38,14 @@ files that we're interested in.
 Table A.1 contains current currencies and funds and Table A.3 contains
 historic denominations.
 
-The tool supports 3 commands - check / print / build.
+The tool supports 2 commands - check / resource.
 
 1) check
 
 This command compares the hardcoded mapping data in NumericCodeData.java
 with the ISO 4217 XML data files side by side and check differences.
 
-2) print
-
-This command prints out body of String[][] CODE_MAP_DATA from the ISO
-4217 XML data files.
-
-3) build
+2) resource
 
 This command writes out the hardcoded mapping data in NumericCodeData.java
 in ICU resource bundle source format - currencyNumericCodes.txt.
@@ -107,7 +102,7 @@ In this case, you have to update the hardcoded data in NumericCodeData.
 You can either edit the table in NumericCodeData manually, or run the tool
 command "print" and copy the output and paste it to the table.
 
-Once you make sure "ant check" returns no errors, run "ant build". This
+Once you make sure "ant check" returns no errors, run "ant resource". This
 target generate out/res/currencyNumericCodes.txt. The file should go to
 <icu4c>/source/data/misc directory.
 
index 15ddaf6a4ca119093bef581f30b03bfe8434db92..5ca9d8eb4a0985b43114ed850c40ad1ef2ab0bf9 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2012, International Business Machines Corporation and         *
+ * Copyright (C) 2012-2013, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  */
@@ -364,6 +364,7 @@ public class NumericCodeData {
         {"ZAL", "991"},
         {"ZAR", "710"},
         {"ZMK", "894"},
+        {"ZMW", "967"},
         {"ZRN", "180"},
         {"ZRZ", "180"},
         {"ZWD", "716"},