<!--
+* © 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. *
<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"/>
*******************************************************************************
+* © 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. *
*******************************************************************************
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:
_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.
[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
+// © 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 *
+// © 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 *
+// © 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 *
+// © 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 *
// 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");
{"BTN", "064"},
{"BWP", "072"},
{"BYB", "112"},
+ {"BYN", "933"},
{"BYR", "974"},
{"BZD", "084"},
{"CAD", "124"},