mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-12739 Currency/Numeric code - sync'ed with the latest ISO data. Also updated the copyright header in source files and output file.
X-SVN-Rev: 39351
This commit is contained in:
parent
e9300f76cf
commit
1bb7a50e5f
6 changed files with 37 additions and 12 deletions
|
@ -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"/>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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"},
|
||||
|
|
Loading…
Add table
Reference in a new issue