8156756: Enable build-time use of resource ordering plugin
authorredestad
Thu, 12 May 2016 14:57:48 +0200
changeset 37865 94ea10488f02
parent 37864 5284b5a9fdc7
child 37866 591e6244dcf7
8156756: Enable build-time use of resource ordering plugin Reviewed-by: jlaskey, alanb, erikj
make/Images.gmk
--- a/make/Images.gmk	Wed May 11 14:48:30 2016 +0200
+++ b/make/Images.gmk	Thu May 12 14:57:48 2016 +0200
@@ -114,8 +114,18 @@
 # Use this file inside the image as target for make rule
 JIMAGE_TARGET_FILE := bin/java$(EXE_SUFFIX)
 
+JLINK_ORDER_RESOURCES := \
+    *module-info.class* \
+    @$(SUPPORT_OUTPUTDIR)/classlist/classlist,/java.base/java/* \
+    /java.base/jdk/* \
+    /java.base/sun/* \
+    /java.base/com/* \
+    /jdk.localedata/* \
+    #
+
 JLINK_TOOL := $(JLINK) --modulepath $(IMAGES_OUTPUTDIR)/jmods \
               --endian $(OPENJDK_BUILD_CPU_ENDIAN) \
+              --order-resources=$(call CommaList, $(JLINK_ORDER_RESOURCES)) \
               --release-info $(BASE_RELEASE_FILE)
 
 ifeq ($(JLINK_KEEP_PACKAGED_MODULES), true)