diff -r 836adbf7a2cd -r 3317bb8137f4 jdk/make/gensrc/GensrcProperties.gmk --- a/jdk/make/gensrc/GensrcProperties.gmk Sun Aug 10 19:39:01 2014 -0700 +++ b/jdk/make/gensrc/GensrcProperties.gmk Sun Aug 17 15:54:13 2014 +0100 @@ -24,9 +24,7 @@ # # Prepare the find cache. -$(eval $(call FillCacheFind, $(JDK_TOPDIR)/src/share/classes \ - $(JDK_TOPDIR)/src/windows/classes \ - $(JDK_TOPDIR)/src/macosx/classes)) +$(eval $(call FillCacheFind, $(wildcard $(JDK_TOPDIR)/src/*/*/classes))) # All .properties files to be compiled are appended to this variable. ALL_COMPILED_PROPSOURCES := @@ -40,63 +38,65 @@ # $2 is the files belonging to this group # $3 is the super class for the generated java file. - # Strip away prefix and suffix, - # leaving for example: sun/util/resources/CurrencyNames_sv - $1_PROPPATHS := $$(patsubst $(JDK_TOPDIR)/src/windows/classes/%.properties, %, \ - $$(patsubst $(JDK_TOPDIR)/src/macosx/classes/%.properties, %, \ - $$(patsubst $(JDK_TOPDIR)/src/share/classes/%.properties, %, $2))) + # Convert /jdk/src//share/classes/sun/util/resources/CurrencyNames_sv.properties + # to /jdk/gensrc/ $@ endef -$(JDK_OUTPUTDIR)/gensrc/%_zh_HK.java: $(JDK_TOPDIR)/src/share/classes/%_zh_TW.java +# Some are copies of existing sources +$(JDK_OUTPUTDIR)/gensrc/java.desktop/%_zh_HK.java: \ + $(JDK_TOPDIR)/src/java.desktop/share/classes/%_zh_TW.java $(call convert_tw_to_hk) +$(JDK_OUTPUTDIR)/gensrc/java.base/%_zh_HK.java: \ + $(JDK_TOPDIR)/src/java.base/share/classes/%_zh_TW.java + $(call convert_tw_to_hk) + +# Others are copies of sources generated by this makefile $(JDK_OUTPUTDIR)/gensrc/%_zh_HK.java: $(JDK_OUTPUTDIR)/gensrc/%_zh_TW.java $(call convert_tw_to_hk) -ZH_HK_JAVA := sun/applet/resources/MsgAppletViewer_zh_HK.java \ - sun/misc/resources/Messages_zh_HK.java \ - sun/security/util/AuthResources_zh_HK.java \ - sun/security/util/Resources_zh_HK.java +# The existing sources +ZH_HK_JAVA := java.desktop/sun/applet/resources/MsgAppletViewer_zh_HK.java \ + java.base/sun/misc/resources/Messages_zh_HK.java \ + java.base/sun/security/util/AuthResources_zh_HK.java \ + java.base/sun/security/util/Resources_zh_HK.java ZH_HK_JAVA_FILES := $(addprefix $(JDK_OUTPUTDIR)/gensrc/, $(ZH_HK_JAVA)) \ - $(filter-out $(JDK_OUTPUTDIR)/gensrc/sun/util/resources/zh/%, \ + $(filter-out $(JDK_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/zh/%, \ $(subst _zh_TW,_zh_HK,$(filter %_zh_TW.java, $(ALL_COMPILED_PROPJAVAS)))) ################################################################################