Print this page
rev 5615 : 6336885: RFE: Locale Data Deployment Enhancements
4609153: Provide locale data for Indic locales
5104387: Support for gl_ES locale (galician language)
6337471: desktop/system locale preferences support
7056139: (cal) SPI support for locale-dependent Calendar parameters
7058206: Provide CalendarData SPI for week params and display field value names
7073852: Support multiple scripts for digits and decimal symbols per locale
7079560: [Fmt-Da] Context dependent month names support in SimpleDateFormat
7171324: getAvailableLocales() of locale sensitive services should return the actual availability of locales
7151414: (cal) Support calendar type identification
7168528: LocaleServiceProvider needs to be aware of Locale extensions
7171372: (cal) locale's default Calendar should be created if unknown calendar is specified
Summary: JEP 127: Improve Locale Data Packaging and Adopt Unicode CLDR Data (part 1 w/o Jigsaw. by Naoto Sato and Masayoshi Okutsu)
Split |
Close |
Expand all |
Collapse all |
--- old/make/java/java/genlocales.gmk
+++ new/make/java/java/genlocales.gmk
1 1 #
2 2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 #
5 5 # This code is free software; you can redistribute it and/or modify it
6 6 # under the terms of the GNU General Public License version 2 only, as
7 7 # published by the Free Software Foundation. Oracle designates this
8 8 # particular file as subject to the "Classpath" exception as provided
9 9 # by Oracle in the LICENSE file that accompanied this code.
10 10 #
11 11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 # version 2 for more details (a copy is included in the LICENSE file that
15 15 # accompanied this code).
16 16 #
17 17 # You should have received a copy of the GNU General Public License version
18 18 # 2 along with this work; if not, write to the Free Software Foundation,
19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 #
21 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 22 # or visit www.oracle.com if you need additional information or have any
23 23 # questions.
24 24 #
25 25
26 26 #
27 27 # This file defines rules to build the locales information for
28 28 # resources in "sun.util.resources" & "sun.text.resources" packages
29 29 #
30 30
31 31 # Save the current FILES_java & FILES_compiled_properties variables
32 32
33 33 FILES_java_orig := $(FILES_java)
34 34 FILES_compiled_properties_orig := $(FILES_compiled_properties)
35 35
36 36
37 37 # Since all the resources files are going to be compiled into class file format,
38 38 # only FILES_java and FILES_compiled_properties variables will be picked up
39 39 #
40 40 # $(BUILDDIR)/java/util/FILES_java.gmk & $(BUILDDIR)/java/util/FILES_properties.gmk
41 41 # contain "sun.util.resources" for European language support
42 42
43 43 include $(BUILDDIR)/java/util/FILES_java.gmk
44 44 include $(BUILDDIR)/java/util/FILES_properties.gmk
45 45
46 46 Euro_Resources_java := $(FILES_java)
47 47 Euro_Resources_properties := $(FILES_compiled_properties)
48 48
49 49 # $(BUILDDIR)/java/text/FILES_java.gmk contains the "sun.text.resources" for
50 50 # European language support
51 51
52 52 include $(BUILDDIR)/java/text/base/FILES_java.gmk
53 53
54 54 Euro_Resources_java += $(FILES_java)
55 55
56 56 FILES_compiled_properties=
57 57
58 58 # $(BUILDDIR)/sun/text/FILES_java.gmk & $(BUILDDIR)/sun/text/FILES_properties.gmk
59 59 # contain both resources for Non-European language support
60 60
↓ open down ↓ |
60 lines elided |
↑ open up ↑ |
61 61 include $(BUILDDIR)/sun/text/FILES_java.gmk
62 62 include $(BUILDDIR)/sun/text/FILES_properties.gmk
63 63
64 64 NonEuro_Resources_java := $(FILES_java)
65 65 NonEuro_Resources_properties := $(FILES_compiled_properties)
66 66
67 67 # Restore the orignal FILES_java & FILES_compiled_properties variables
68 68 FILES_java := $(FILES_java_orig)
69 69 FILES_compiled_properties := $(FILES_compiled_properties_orig)
70 70
71 -LocaleDataMetaInfo_Src=$(SHARE_SRC)/classes/sun/util/LocaleDataMetaInfo-XLocales.java.template
72 -LocaleDataMetaInfo_Dest=$(GENSRCDIR)/sun/util/LocaleDataMetaInfo.java
71 +LocaleDataMetaInfo_Src=$(SHARE_SRC)/classes/sun/util/locale/provider/LocaleDataMetaInfo-XLocales.java.template
72 +LocaleDataMetaInfo_Dest=$(GENSRCDIR)/sun/util/locale/provider/LocaleDataMetaInfo.java
73 73 LOCALEGEN_SH=localegen.sh
74 74 RESOURCE_NAMES="FormatData CollationData TimeZoneNames LocaleNames CurrencyNames CalendarData"
75 75
76 76
77 77 # On MacOSX sed does not enter a newline as it does on other platforms with the same pattern
78 78 # Using awk instead
79 79
80 80 ifeq ($(PLATFORM), macosx)
81 81
82 82 $(LocaleDataMetaInfo_Dest):$(LocaleDataMetaInfo_Src) $(LOCALEGEN_SH)
83 83 @$(RM) $@.tmp.euro $@.tmp.noneuro;
84 84 @$(prep-target)
85 85 @$(ECHO) $(Euro_Resources_properties) | $(NAWK) 'gsub(/.properties/,"\n") {print}' > $@.tmp.euro;
86 86 @$(ECHO) $(Euro_Resources_java) | $(NAWK) 'gsub(/.java/,"\n") {print}' >> $@.tmp.euro;
87 87 @$(ECHO) $(NonEuro_Resources_properties) | $(NAWK) 'gsub(/.properties/,"\n") {print}' > $@.tmp.noneuro;
88 88 @$(ECHO) $(NonEuro_Resources_java) | $(NAWK) 'gsub(/.java/,"\n") {print}' >> $@.tmp.noneuro;
89 89 NAWK="$(NAWK)" SED="$(SED)" SORT="$(SORT)" \
90 90 $(SH) $(LOCALEGEN_SH) $(RESOURCE_NAMES) $@.tmp.euro \
91 91 $@.tmp.noneuro $< $@
92 92 @$(RM) $@.tmp.euro $@.tmp.noneuro;
93 93
94 94 else
95 95
96 96 $(LocaleDataMetaInfo_Dest):$(LocaleDataMetaInfo_Src) $(LOCALEGEN_SH)
97 97 @$(RM) $@.tmp.euro $@.tmp.noneuro;
98 98 @$(prep-target)
99 99 @$(ECHO) $(subst .properties,'\n',$(Euro_Resources_properties)) > $@.tmp.euro;
100 100 @$(ECHO) $(subst .java,'\n',$(Euro_Resources_java)) >> $@.tmp.euro;
101 101 @$(ECHO) $(subst .properties,'\n',$(NonEuro_Resources_properties)) > $@.tmp.noneuro;
102 102 @$(ECHO) $(subst .java,'\n',$(NonEuro_Resources_java)) >> $@.tmp.noneuro;
103 103 NAWK="$(NAWK)" SED="$(SED)" SORT="$(SORT)" \
104 104 $(SH) $(LOCALEGEN_SH) $(RESOURCE_NAMES) $@.tmp.euro \
105 105 $@.tmp.noneuro $< $@
106 106 @$(RM) $@.tmp.euro $@.tmp.noneuro;
107 107 endif
108 108
109 109 genlocales : $(LocaleDataMetaInfo_Dest)
110 110
111 111 clean clobber::
112 112 $(RM) $(LocaleDataMetaInfo_Dest)
113 113
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX