]> granicus.if.org Git - icu/commitdiff
ICU-12739 Currency/Numeric code - sync'ed with the latest ISO data. Also updated...
authorYoshito Umaoka <y.umaoka@gmail.com>
Mon, 26 Sep 2016 18:29:41 +0000 (18:29 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Mon, 26 Sep 2016 18:29:41 +0000 (18:29 +0000)
X-SVN-Rev: 39351

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

index a7618f71cda1dfe5da189ccfb7c9a38785e4f95f..44c80eb8c9c3c7dbac8b4a4ba8e408fbc0d4d24e 100644 (file)
@@ -1,4 +1,6 @@
 <!--
+* © 2016 and later: Unicode, Inc. and others.
+* License & terms of use: http://www.unicode.org/copyright.html#License
 *******************************************************************************
 * Copyright (C) 2012-2013, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
@@ -11,9 +13,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/dam/downloads/"/>
-    <property name="current.xml" value="table_a1.xml"/>
-    <property name="historic.xml" value="table_a3.xml"/>
+    <property name="base.url" value="http://www.currency-iso.org/dam/downloads/lists/"/>
+    <property name="current.xml" value="list_one.xml"/>
+    <property name="historic.xml" value="list_three.xml"/>
 
 <target name="build" depends="check, resource" description="Verify ICU's local data and generate ISO 4217 alpha-numeric code mapping data resource"/>
 
index f755507a95c4e1ba07e2ad9b8bf3e27cbca99524..da6f7eba0b9d4ce5475ae717b1b57929b7c14cb4 100644 (file)
@@ -1,4 +1,7 @@
 *******************************************************************************
+* © 2016 and later: Unicode, Inc. and others.
+* License & terms of use: http://www.unicode.org/copyright.html#License
+*******************************************************************************
 * Copyright (C) 2012-2013, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
@@ -62,8 +65,8 @@ the SIX Interbank Clearing site and invoke the tool command "check".
 
 When the target successfully finished, you should see the log like below:
 ----------------------------------------------------------------------------
-C:\devtls\trunk\currency>ant check
-Buildfile: C:\devtls\trunk\currency\build.xml
+C:\devtools\trunk\currency>ant
+Buildfile: C:\devtools\trunk\currency\build.xml
 
 classes:
 
@@ -73,18 +76,26 @@ _localXml:
 
 _downloadXml:
      [echo] Downloading ISO 4217 XML data files
-      [get] Getting: http://www.currency-iso.org/dl_iso_table_a1.xml
-      [get] To: C:\devtls\trunk\currency\out\xml\dl_iso_table_a1.xml
-      [get] Getting: http://www.currency-iso.org/dl_iso_tables_a3.xml
-      [get] To: C:\devtls\trunk\currency\out\xml\dl_iso_tables_a3.xml
+      [get] Getting: http://www.currency-iso.org/dam/downloads/lists/list_one.xm
+l
+      [get] To: C:\devtools\trunk\currency\out\xml\list_one.xml
+      [get] Getting: http://www.currency-iso.org/dam/downloads/lists/list_three.
+xml
+      [get] To: C:\devtools\trunk\currency\out\xml\list_three.xml
 
 xmlData:
 
 check:
      [java] [OK] ICU data is synchronized with the reference data
 
+resource:
+     [echo] ISO 4217 numeric code mapping data was successfully created in C:\de
+vtools\trunk\currency/out/res
+
+build:
+
 BUILD SUCCESSFUL
-Total time: 2 seconds
+Total time: 1 second
 ----------------------------------------------------------------------------
 In this case, our data is synchronized with the latest XML data and you're done.
 
@@ -96,7 +107,7 @@ check:
      [java] Codes not found in the reference data: ZZZ
 
 BUILD FAILED
-C:\devtls\trunk\currency\build.xml:54: Java returned: 1
+C:\devtools\trunk\currency\build.xml:54: Java returned: 1
 ----------------------------------------------------------------------------
 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
index 69dfc40339c6d9a3386224ccf0bae443a8cebd14..eac7e58ad04dd1a6a0dcb71e178a644fe02eaba3 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html#License
 /*
  *******************************************************************************
  * Copyright (C) 2012, International Business Machines Corporation and         *
index 332824ff5b09864a5aa286e29fb560418bae8a50..5a20fcac6bc621c799c890cba635911138840d0f 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html#License
 /*
  *******************************************************************************
  * Copyright (C) 2012-2013, International Business Machines Corporation and    *
index 6bbc1b63af2c2f54cfe8b7178fc447b039a61dd9..75562a3871f5af533c060f7891d4cf656d45e52a 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html#License
 /*
  *******************************************************************************
  * Copyright (C) 2012, International Business Machines Corporation and         *
index 5ca9d8eb4a0985b43114ed850c40ad1ef2ab0bf9..24474ca418bc410d951075179d88a8f98992cca7 100644 (file)
@@ -1,3 +1,5 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html#License
 /*
  *******************************************************************************
  * Copyright (C) 2012-2013, International Business Machines Corporation and    *
@@ -82,7 +84,10 @@ public class NumericCodeData {
 
         // Header
         pw.println("//---------------------------------------------------------");
-        pw.println(String.format("// Copyright (C) %1$tY, International Business Machines", cal));
+        pw.println("// Copyright (C) 2016 and later: Unicode, Inc. and others.");
+        pw.println("// License & terms of use: http://www.unicode.org/copyright.html");
+        pw.println("//---------------------------------------------------------");
+        pw.println("// Copyright (C) 2013, International Business Machines");
         pw.println("// Corporation and others.  All Rights Reserved.");
         pw.println("//---------------------------------------------------------");
         pw.println("// Build tool: com.ibm.icu.dev.tool.currency.NumericCodeData");
@@ -154,6 +159,7 @@ public class NumericCodeData {
         {"BTN", "064"},
         {"BWP", "072"},
         {"BYB", "112"},
+        {"BYN", "933"},
         {"BYR", "974"},
         {"BZD", "084"},
         {"CAD", "124"},