提交 c752fad0 编写于 作者: M mchung

6793429: Use compiled properties instead of plain properties for resource file

Summary: Rename the variables in Resources.gmk to make compiled properties more explicit
Reviewed-by: naoto, yhuang
上级 43efc4e3
...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = com/sun/org/apache/xml ...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = com/sun/org/apache/xml
# Resources # Resources
# #
LOCALE_SET_DEFINITION = jre LOCALE_SET_DEFINITION = jre
NEW_RESOURCE_BUNDLES_PROPERTIES = \ NEW_RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES = \
$(PKGDIR)/internal/security/resource/config.dtd \ $(PKGDIR)/internal/security/resource/config.dtd \
$(PKGDIR)/internal/security/resource/config.xml \ $(PKGDIR)/internal/security/resource/config.xml \
$(PKGDIR)/internal/security/resource/xmlsecurity_de.properties \ $(PKGDIR)/internal/security/resource/xmlsecurity_de.properties \
......
...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = com/sun/rowset ...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = com/sun/rowset
# Resources # Resources
# #
LOCALE_SET_DEFINITION = jre LOCALE_SET_DEFINITION = jre
RESOURCE_BUNDLES_PROPERTIES = $(PKGDIR)/RowSetResourceBundle.properties RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES = $(PKGDIR)/RowSetResourceBundle.properties
# #
# Rules # Rules
......
...@@ -44,12 +44,8 @@ ...@@ -44,12 +44,8 @@
# #
# NEW_RESOURCE_BUNDLES_JAVA - new resource bundles implemented in # NEW_RESOURCE_BUNDLES_JAVA - new resource bundles implemented in
# Java, not localized # Java, not localized
# NEW_RESOURCE_BUNDLES_PROPERTIES - new resource bundles implemented as
# properties files, not localized
# RESOURCE_BUNDLES_JAVA - resource bundles implemented in # RESOURCE_BUNDLES_JAVA - resource bundles implemented in
# Java, localized # Java, localized
# RESOURCE_BUNDLES_PROPERTIES - new resource bundles implemented as
# properties files, localized
# #
# The following variable is now used for most .properties files in the JDK. # The following variable is now used for most .properties files in the JDK.
# These properties files are converted into java and compiled with javac. # These properties files are converted into java and compiled with javac.
...@@ -61,6 +57,13 @@ ...@@ -61,6 +57,13 @@
# properties files, localized # properties files, localized
# NEW_RESOURCE_BUNDLES_COMPILED_PROPERTIES - same as above, not localized # NEW_RESOURCE_BUNDLES_COMPILED_PROPERTIES - same as above, not localized
# #
# For non-compiled properties files, use the following variables:
#
# NEW_RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES - new resource bundles implemented as
# properties files, not localized
# RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES - resource bundles implemented as
# properties files, localized
#
# Other properties files to be installed are identified using the variable: # Other properties files to be installed are identified using the variable:
# #
# OTHER_PROPERTIES # OTHER_PROPERTIES
...@@ -109,11 +112,12 @@ COMPILED_PROPERTIES += $(RESOURCE_BUNDLES_COMPILED_PROPERTIES) \ ...@@ -109,11 +112,12 @@ COMPILED_PROPERTIES += $(RESOURCE_BUNDLES_COMPILED_PROPERTIES) \
FILES_java += $(COMPILED_PROPERTIES:%.properties=%.java) FILES_java += $(COMPILED_PROPERTIES:%.properties=%.java)
# Non-compiled files # Non-compiled files
PROPERTIES_FILES += $(NEW_RESOURCE_BUNDLES_PROPERTIES) PROPERTIES_FILES += $(NEW_RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES)
PROPERTIES_FILES += $(RESOURCE_BUNDLES_PROPERTIES) \ PROPERTIES_FILES += $(RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES) \
$(foreach file,$(RESOURCE_BUNDLES_PROPERTIES), \ $(foreach file,$(RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES), \
$(foreach locale,$(LOCALE_SUFFIXES), \ $(foreach locale,$(LOCALE_SUFFIXES), \
$(basename $(file))_$(locale)$(suffix $(file)))) $(basename $(file))_$(locale)$(suffix $(file))))
# other properties
PROPERTIES_FILES += $(OTHER_PROPERTIES) PROPERTIES_FILES += $(OTHER_PROPERTIES)
# #
......
...@@ -37,7 +37,7 @@ AUTO_FILES_JAVA_DIRS = sun/launcher ...@@ -37,7 +37,7 @@ AUTO_FILES_JAVA_DIRS = sun/launcher
# Resources # Resources
# #
LOCALE_SET_DEFINITION = jre LOCALE_SET_DEFINITION = jre
NEW_RESOURCE_BUNDLES_PROPERTIES = $(PKGDIR)/resources/launcher.properties NEW_RESOURCE_BUNDLES_COMPILED_PROPERTIES = $(PKGDIR)/resources/launcher.properties
# #
# Rules # Rules
......
...@@ -41,7 +41,7 @@ include FILES_java.gmk ...@@ -41,7 +41,7 @@ include FILES_java.gmk
# Resources # Resources
# #
LOCALE_SET_DEFINITION = j2sdk LOCALE_SET_DEFINITION = j2sdk
RESOURCE_BUNDLES_PROPERTIES = sun/tools/javac/resources/javac.properties RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES = sun/tools/javac/resources/javac.properties
# #
# Rules # Rules
......
...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = sun/rmi/registry ...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = sun/rmi/registry
# Resources # Resources
# #
LOCALE_SET_DEFINITION = jre LOCALE_SET_DEFINITION = jre
RESOURCE_BUNDLES_PROPERTIES = $(PKGDIR)/resources/rmiregistry.properties RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES = $(PKGDIR)/resources/rmiregistry.properties
# #
# Rules # Rules
......
...@@ -43,7 +43,7 @@ FILES_java = $(RMIC_java) ...@@ -43,7 +43,7 @@ FILES_java = $(RMIC_java)
# Resources # Resources
# #
LOCALE_SET_DEFINITION = jdk LOCALE_SET_DEFINITION = jdk
RESOURCE_BUNDLES_PROPERTIES = $(PKGDIR)/resources/rmic.properties RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES = $(PKGDIR)/resources/rmic.properties
# #
# Rules # Rules
......
...@@ -39,7 +39,7 @@ build: stubs ...@@ -39,7 +39,7 @@ build: stubs
# Resources # Resources
# #
LOCALE_SET_DEFINITION = jre LOCALE_SET_DEFINITION = jre
RESOURCE_BUNDLES_PROPERTIES = sun/rmi/server/resources/rmid.properties RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES = sun/rmi/server/resources/rmid.properties
# #
# Extra dependencies. # Extra dependencies.
......
...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = sun/tools/serialver ...@@ -41,7 +41,7 @@ AUTO_FILES_JAVA_DIRS = sun/tools/serialver
# Resources # Resources
# #
LOCALE_SET_DEFINITION = jdk LOCALE_SET_DEFINITION = jdk
RESOURCE_BUNDLES_PROPERTIES = $(PKGDIR)/resources/serialver.properties RESOURCE_BUNDLES_UNCOMPILED_PROPERTIES = $(PKGDIR)/resources/serialver.properties
# #
# Rules # Rules
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册