8189094: Change required boot jdk to JDK 9
Reviewed-by: ihse, mchung
This commit is contained in:
parent
d84d8f1cc5
commit
ca8ad3c162
@ -69,17 +69,12 @@ $(eval $(call SetupJavaCompilation, BUILD_NASGEN, \
|
|||||||
NASHORN_CLASSES_DIR := $(JDK_OUTPUTDIR)/modules/jdk.scripting.nashorn
|
NASHORN_CLASSES_DIR := $(JDK_OUTPUTDIR)/modules/jdk.scripting.nashorn
|
||||||
NASGEN_RUN_FILE := $(NASHORN_CLASSES_DIR)/_the.nasgen.run
|
NASGEN_RUN_FILE := $(NASHORN_CLASSES_DIR)/_the.nasgen.run
|
||||||
|
|
||||||
ifeq ($(BOOT_JDK_MODULAR), true)
|
NASGEN_OPTIONS := \
|
||||||
NASGEN_OPTIONS := \
|
-cp $(BUILDTOOLS_OUTPUTDIR)/nasgen_classes \
|
||||||
-cp $(BUILDTOOLS_OUTPUTDIR)/nasgen_classes \
|
--patch-module java.base=$(BUILDTOOLS_OUTPUTDIR)/nasgen_classes \
|
||||||
--patch-module java.base=$(BUILDTOOLS_OUTPUTDIR)/nasgen_classes \
|
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
|
||||||
--add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
|
--add-exports java.base/jdk.internal.org.objectweb.asm.util=ALL-UNNAMED \
|
||||||
--add-exports java.base/jdk.internal.org.objectweb.asm.util=ALL-UNNAMED \
|
#
|
||||||
#
|
|
||||||
else
|
|
||||||
NASGEN_OPTIONS := \
|
|
||||||
-Xbootclasspath/p:$(BUILDTOOLS_OUTPUTDIR)/nasgen_classes
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Copy classes to final classes dir and run nasgen to modify classes in jdk.nashorn.internal.objects package
|
# Copy classes to final classes dir and run nasgen to modify classes in jdk.nashorn.internal.objects package
|
||||||
$(NASGEN_RUN_FILE): $(BUILD_NASGEN) $(jdk.scripting.nashorn)
|
$(NASGEN_RUN_FILE): $(BUILD_NASGEN) $(jdk.scripting.nashorn)
|
||||||
|
@ -30,39 +30,63 @@ include $(SPEC)
|
|||||||
include MakeBase.gmk
|
include MakeBase.gmk
|
||||||
include JavaCompilation.gmk
|
include JavaCompilation.gmk
|
||||||
include SetupJavaCompilers.gmk
|
include SetupJavaCompilers.gmk
|
||||||
|
include Modules.gmk
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Generate interim versions of the module-info.java files for the interim
|
||||||
|
# langtools modules. Each interim module has ".interim" added as suffix to the
|
||||||
|
# original module name.
|
||||||
|
|
||||||
|
INTERIM_MODULEINFO_PATTERN := \
|
||||||
|
$(foreach m, $(INTERIM_LANGTOOLS_BASE_MODULES), -e 's/$m\([,; ]\)/$m.interim\1/g')
|
||||||
|
|
||||||
|
$(BUILDTOOLS_OUTPUTDIR)/gensrc/%.interim/module-info.java: \
|
||||||
|
$(TOPDIR)/src/%/share/classes/module-info.java
|
||||||
|
$(call LogInfo, Generating module-info.java for $*.interim)
|
||||||
|
$(call MakeDir, $(@D))
|
||||||
|
$(SED) $(INTERIM_MODULEINFO_PATTERN) $< > $@
|
||||||
|
|
||||||
|
TARGETS += $(patsubst %, $(BUILDTOOLS_OUTPUTDIR)/gensrc/%/module-info.java, \
|
||||||
|
$(INTERIM_LANGTOOLS_MODULES))
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Setup the rules to build interim langtools, which is compiled by the boot
|
# Setup the rules to build interim langtools, which is compiled by the boot
|
||||||
# javac and can be run on the boot jdk. This will be used to compile
|
# javac and can be run on the boot jdk. This will be used to compile the rest of
|
||||||
# the rest of the product. Each module is compiled separately to allow a modular
|
# the product. Each module is compiled separately because a multi module setup
|
||||||
# boot jdk to override system classes using -Xoverride:.
|
# would require the source files to be copied into directories named after the
|
||||||
|
# actual interim modules.
|
||||||
|
|
||||||
# Param 1 - Name of module to compile
|
# Param 1 - Name of module to compile
|
||||||
# Param 2 - Name of modules to depend on
|
|
||||||
define SetupInterimModule
|
define SetupInterimModule
|
||||||
$$(eval $$(call SetupJavaCompilation,BUILD_INTERIM_$(strip $1), \
|
$$(eval $$(call SetupJavaCompilation, BUILD_$1.interim, \
|
||||||
SETUP := BOOT_JAVAC, \
|
SETUP := BOOT_JAVAC, \
|
||||||
DISABLE_SJAVAC := true, \
|
DISABLE_SJAVAC := true, \
|
||||||
SRC := $(TOPDIR)/src/$(strip $1)/share/classes \
|
SRC := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim \
|
||||||
$$(wildcard $(SUPPORT_OUTPUTDIR)/gensrc/$(strip $1)), \
|
$$(wildcard $(SUPPORT_OUTPUTDIR)/gensrc/$1) \
|
||||||
EXCLUDES := sun com/sun/tools/jdeps com/sun/tools/javap \
|
$(TOPDIR)/src/$1/share/classes, \
|
||||||
com/sun/tools/jdeprscan, \
|
EXCLUDES := sun, \
|
||||||
EXCLUDE_FILES := module-info.java JavacToolProvider.java \
|
EXCLUDE_FILES := $(TOPDIR)/src/$1/share/classes/module-info.java \
|
||||||
JavadocToolProvider.java Standard.java, \
|
Standard.java, \
|
||||||
|
EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/$1.interim/module-info.java, \
|
||||||
COPY := .gif .png .xml .css .js javax.tools.JavaCompilerTool, \
|
COPY := .gif .png .xml .css .js javax.tools.JavaCompilerTool, \
|
||||||
BIN := $(BUILDTOOLS_OUTPUTDIR)/override_modules/$(strip $1), \
|
BIN := $(BUILDTOOLS_OUTPUTDIR)/interim_modules/$1.interim, \
|
||||||
ADD_JAVAC_FLAGS := -Xbootclasspath/p:$$(call PathList, \
|
ADD_JAVAC_FLAGS := --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_modules \
|
||||||
$$(foreach m, $2, $(BUILDTOOLS_OUTPUTDIR)/override_modules/$$m)), \
|
$$(INTERIM_LANGTOOLS_ADD_EXPORTS) \
|
||||||
|
-Xlint:-module, \
|
||||||
))
|
))
|
||||||
|
|
||||||
$$(BUILD_INTERIM_$(strip $1)): $$(foreach m, $2, $$(BUILD_INTERIM_$(strip $$m)))
|
$1_DEPS_INTERIM := $$(addsuffix .interim, $$(filter \
|
||||||
|
$$(INTERIM_LANGTOOLS_BASE_MODULES), $$(call FindTransitiveDepsForModule, $1)))
|
||||||
|
|
||||||
TARGETS += $$(BUILD_INTERIM_$(strip $1))
|
$$(BUILD_$1.interim): $$(foreach d, $$($1_DEPS_INTERIM), $$(BUILD_$$d))
|
||||||
|
|
||||||
|
TARGETS += $$(BUILD_$1.interim)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call SetupInterimModule, java.compiler))
|
$(foreach m, $(INTERIM_LANGTOOLS_BASE_MODULES), \
|
||||||
$(eval $(call SetupInterimModule, jdk.compiler, java.compiler))
|
$(eval $(call SetupInterimModule,$m)) \
|
||||||
$(eval $(call SetupInterimModule, jdk.jdeps, jdk.compiler java.compiler))
|
)
|
||||||
$(eval $(call SetupInterimModule, jdk.javadoc, java.compiler jdk.compiler))
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -30,7 +30,25 @@ include MakeBase.gmk
|
|||||||
include JavaCompilation.gmk
|
include JavaCompilation.gmk
|
||||||
include SetupJavaCompilers.gmk
|
include SetupJavaCompilers.gmk
|
||||||
|
|
||||||
##########################################################################################
|
################################################################################
|
||||||
|
# Generate interim versions of the module-info.java files for the interim
|
||||||
|
# langtools modules. Each interim module has ".interim" added as suffix to the
|
||||||
|
# original module name.
|
||||||
|
|
||||||
|
INTERIM_MODULEINFO_PATTERN := \
|
||||||
|
$(foreach m, $(INTERIM_RMIC_BASE_MODULES), -e 's/$m\([,; ]\)/$m.interim\1/g') \
|
||||||
|
-e '/ToolProvider[,; ]/d'
|
||||||
|
|
||||||
|
$(BUILDTOOLS_OUTPUTDIR)/gensrc/%.interim/module-info.java: \
|
||||||
|
$(TOPDIR)/src/%/share/classes/module-info.java
|
||||||
|
$(call LogInfo, Generating module-info.java for $*.interim)
|
||||||
|
$(call MakeDir, $(@D))
|
||||||
|
$(SED) $(INTERIM_MODULEINFO_PATTERN) $< > $@
|
||||||
|
|
||||||
|
TARGETS += $(patsubst %, $(BUILDTOOLS_OUTPUTDIR)/gensrc/%/module-info.java, \
|
||||||
|
$(INTERIM_RMIC_MODULES))
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
RMIC_PKGS := \
|
RMIC_PKGS := \
|
||||||
sun/rmi/rmic \
|
sun/rmi/rmic \
|
||||||
@ -41,14 +59,23 @@ RMIC_PKGS := \
|
|||||||
sun/tools/util \
|
sun/tools/util \
|
||||||
#
|
#
|
||||||
|
|
||||||
$(eval $(call SetupJavaCompilation,BUILD_INTERIM_RMIC, \
|
$(eval $(call SetupJavaCompilation, BUILD_jdk.rmic.interim, \
|
||||||
SETUP := GENERATE_OLDBYTECODE, \
|
SETUP := GENERATE_OLDBYTECODE, \
|
||||||
SRC := $(TOPDIR)/src/jdk.rmic/share/classes, \
|
SRC := $(TOPDIR)/src/jdk.rmic/share/classes, \
|
||||||
EXCLUDE_FILES := module-info.java, \
|
EXCLUDE_FILES := $(TOPDIR)/src/jdk.rmic/share/classes/module-info.java, \
|
||||||
|
EXTRA_FILES := $(BUILDTOOLS_OUTPUTDIR)/gensrc/jdk.rmic.interim/module-info.java, \
|
||||||
INCLUDES := $(RMIC_PKGS), \
|
INCLUDES := $(RMIC_PKGS), \
|
||||||
BIN := $(BUILDTOOLS_OUTPUTDIR)/override_modules/jdk.rmic, \
|
BIN := $(BUILDTOOLS_OUTPUTDIR)/interim_modules/jdk.rmic.interim, \
|
||||||
COPY := .properties))
|
COPY := .properties, \
|
||||||
|
ADD_JAVAC_FLAGS := \
|
||||||
|
--module-path $(BUILDTOOLS_OUTPUTDIR)/interim_modules \
|
||||||
|
--add-modules java.corba \
|
||||||
|
--add-exports java.corba/com.sun.corba.se.impl.util=jdk.rmic.interim \
|
||||||
|
$(INTERIM_RMIC_ADD_EXPORTS), \
|
||||||
|
))
|
||||||
|
|
||||||
|
TARGETS += $(BUILD_jdk.rmic.interim)
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
||||||
all: $(BUILD_INTERIM_RMIC)
|
all: $(TARGETS)
|
||||||
|
@ -42,13 +42,22 @@ BUILD_TOOLS_SRC_DIRS += \
|
|||||||
$(BUILDTOOLS_OUTPUTDIR)/interim_cldrconverter_classes \
|
$(BUILDTOOLS_OUTPUTDIR)/interim_cldrconverter_classes \
|
||||||
#
|
#
|
||||||
|
|
||||||
$(eval $(call SetupJavaCompilation,BUILD_TOOLS_JDK, \
|
$(eval $(call SetupJavaCompilation, BUILD_TOOLS_JDK, \
|
||||||
SETUP := GENERATE_OLDBYTECODE, \
|
SETUP := GENERATE_OLDBYTECODE, \
|
||||||
SRC := $(BUILD_TOOLS_SRC_DIRS), \
|
SRC := $(BUILD_TOOLS_SRC_DIRS), \
|
||||||
EXCLUDES := build/tools/deps \
|
EXCLUDES := \
|
||||||
build/tools/docs \
|
build/tools/deps \
|
||||||
build/tools/jigsaw, \
|
build/tools/docs \
|
||||||
BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes))
|
build/tools/jigsaw \
|
||||||
|
, \
|
||||||
|
BIN := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes, \
|
||||||
|
ADD_JAVAC_FLAGS := \
|
||||||
|
--add-modules java.xml.bind \
|
||||||
|
--add-exports java.desktop/sun.awt=ALL-UNNAMED \
|
||||||
|
--add-exports java.xml.bind/javax.xml.bind.annotation=ALL-UNNAMED \
|
||||||
|
--add-exports java.base/sun.text=ALL-UNNAMED \
|
||||||
|
, \
|
||||||
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_TOOLS_JDK)
|
TARGETS += $(BUILD_TOOLS_JDK)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -47,7 +47,7 @@ JIMAGE_PKGS := \
|
|||||||
#
|
#
|
||||||
|
|
||||||
$(eval $(call SetupJavaCompilation, BUILD_JRTFS, \
|
$(eval $(call SetupJavaCompilation, BUILD_JRTFS, \
|
||||||
SETUP := GENERATE_OLDBYTECODE, \
|
SETUP := GENERATE_8_BYTECODE, \
|
||||||
SRC := $(TOPDIR)/src/java.base/share/classes, \
|
SRC := $(TOPDIR)/src/java.base/share/classes, \
|
||||||
EXCLUDE_FILES := module-info.java, \
|
EXCLUDE_FILES := module-info.java, \
|
||||||
INCLUDES := $(JIMAGE_PKGS), \
|
INCLUDES := $(JIMAGE_PKGS), \
|
||||||
|
@ -122,6 +122,8 @@ ifneq ($(CREATING_BUILDJDK), true)
|
|||||||
$(foreach m, $(GENSRC_MODULES), $(eval $m-gensrc: $m-gensrc-src))
|
$(foreach m, $(GENSRC_MODULES), $(eval $m-gensrc: $m-gensrc-src))
|
||||||
|
|
||||||
LANGTOOLS_GENSRC_TARGETS := $(filter $(addsuffix -%, $(LANGTOOLS_MODULES)), $(GENSRC_TARGETS))
|
LANGTOOLS_GENSRC_TARGETS := $(filter $(addsuffix -%, $(LANGTOOLS_MODULES)), $(GENSRC_TARGETS))
|
||||||
|
INTERIM_LANGTOOLS_GENSRC_TARGETS := $(filter $(addsuffix -%, \
|
||||||
|
$(INTERIM_LANGTOOLS_BASE_MODULES)), $(GENSRC_TARGETS))
|
||||||
CORBA_GENSRC_TARGETS := $(filter $(addsuffix -%, $(CORBA_MODULES)), $(GENSRC_TARGETS))
|
CORBA_GENSRC_TARGETS := $(filter $(addsuffix -%, $(CORBA_MODULES)), $(GENSRC_TARGETS))
|
||||||
HOTSPOT_GENSRC_TARGETS := $(filter $(addsuffix -%, $(HOTSPOT_MODULES)), $(GENSRC_TARGETS))
|
HOTSPOT_GENSRC_TARGETS := $(filter $(addsuffix -%, $(HOTSPOT_MODULES)), $(GENSRC_TARGETS))
|
||||||
JDK_GENSRC_TARGETS := $(filter-out $(LANGTOOLS_GENSRC_TARGETS) \
|
JDK_GENSRC_TARGETS := $(filter-out $(LANGTOOLS_GENSRC_TARGETS) \
|
||||||
@ -602,7 +604,7 @@ ifneq ($(findstring -only, $(MAKECMDGOALS)), )
|
|||||||
else
|
else
|
||||||
$(LANGTOOLS_GENSRC_TARGETS): buildtools-langtools
|
$(LANGTOOLS_GENSRC_TARGETS): buildtools-langtools
|
||||||
|
|
||||||
interim-langtools: $(LANGTOOLS_GENSRC_TARGETS)
|
interim-langtools: $(INTERIM_LANGTOOLS_GENSRC_TARGETS)
|
||||||
|
|
||||||
buildtools-jdk: interim-langtools interim-cldrconverter
|
buildtools-jdk: interim-langtools interim-cldrconverter
|
||||||
|
|
||||||
|
@ -40,12 +40,8 @@ BUILD_TOOLS_JDK := $(call SetupJavaCompilationCompileTarget, \
|
|||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
ifeq ($(BOOT_JDK_MODULAR), true)
|
|
||||||
COMPILEFONTCONFIG_ADD_EXPORTS := --add-exports java.desktop/sun.awt=ALL-UNNAMED
|
|
||||||
endif
|
|
||||||
|
|
||||||
TOOL_COMPILEFONTCONFIG = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
TOOL_COMPILEFONTCONFIG = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
||||||
$(COMPILEFONTCONFIG_ADD_EXPORTS) \
|
--add-exports java.desktop/sun.awt=ALL-UNNAMED \
|
||||||
build.tools.compilefontconfig.CompileFontConfig
|
build.tools.compilefontconfig.CompileFontConfig
|
||||||
|
|
||||||
TOOL_COMPILEPROPERTIES = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
TOOL_COMPILEPROPERTIES = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
||||||
@ -95,13 +91,8 @@ TOOL_CHARSETMAPPING = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classe
|
|||||||
TOOL_SPP = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.spp.Spp
|
TOOL_SPP = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes build.tools.spp.Spp
|
||||||
|
|
||||||
# Nimbus is used somewhere in the swing build.
|
# Nimbus is used somewhere in the swing build.
|
||||||
|
|
||||||
ifeq ($(BOOT_JDK_MODULAR), true)
|
|
||||||
COMPILENIMBUS_ADD_MODS := --add-modules java.xml.bind
|
|
||||||
endif
|
|
||||||
|
|
||||||
TOOL_GENERATENIMBUS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
TOOL_GENERATENIMBUS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
||||||
$(COMPILENIMBUS_ADD_MODS) \
|
--add-modules java.xml.bind \
|
||||||
build.tools.generatenimbus.Generator
|
build.tools.generatenimbus.Generator
|
||||||
|
|
||||||
TOOL_WRAPPERGENERATOR = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
TOOL_WRAPPERGENERATOR = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
|
||||||
|
@ -77,10 +77,10 @@ AC_DEFUN([BOOTJDK_DO_CHECK],
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
[FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`]
|
[FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`]
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring])
|
AC_MSG_NOTICE([Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring])
|
||||||
AC_MSG_NOTICE([(Your Boot JDK must be version 8, 9 or 10)])
|
AC_MSG_NOTICE([(Your Boot JDK must be version 9 or 10)])
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -301,20 +301,11 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK],
|
|||||||
|
|
||||||
# Finally, set some other options...
|
# Finally, set some other options...
|
||||||
|
|
||||||
# When compiling code to be executed by the Boot JDK, force jdk8 compatibility.
|
# When compiling code to be executed by the Boot JDK, force compatibility with the
|
||||||
BOOT_JDK_SOURCETARGET="-source 8 -target 8"
|
# oldest supported bootjdk.
|
||||||
|
BOOT_JDK_SOURCETARGET="-source 9 -target 9"
|
||||||
AC_SUBST(BOOT_JDK_SOURCETARGET)
|
AC_SUBST(BOOT_JDK_SOURCETARGET)
|
||||||
|
|
||||||
AC_MSG_CHECKING([if Boot JDK supports modules])
|
|
||||||
if "$JAVA" --list-modules > /dev/null 2>&1; then
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
BOOT_JDK_MODULAR="true"
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
BOOT_JDK_MODULAR="false"
|
|
||||||
fi
|
|
||||||
AC_SUBST(BOOT_JDK_MODULAR)
|
|
||||||
|
|
||||||
AC_SUBST(JAVAC_FLAGS)
|
AC_SUBST(JAVAC_FLAGS)
|
||||||
|
|
||||||
# Check if the boot jdk is 32 or 64 bit
|
# Check if the boot jdk is 32 or 64 bit
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
# Support for building boot cycle builds
|
# Support for building boot cycle builds
|
||||||
|
|
||||||
BOOT_JDK_MODULAR := true
|
|
||||||
|
|
||||||
# First include the real base spec.gmk file
|
# First include the real base spec.gmk file
|
||||||
include @SPEC@
|
include @SPEC@
|
||||||
|
|
||||||
|
@ -878,7 +878,6 @@ CREATE_BUILDJDK
|
|||||||
JLINK
|
JLINK
|
||||||
JMOD
|
JMOD
|
||||||
JAVAC_FLAGS
|
JAVAC_FLAGS
|
||||||
BOOT_JDK_MODULAR
|
|
||||||
BOOT_JDK_SOURCETARGET
|
BOOT_JDK_SOURCETARGET
|
||||||
JARSIGNER
|
JARSIGNER
|
||||||
JAR
|
JAR
|
||||||
@ -5115,7 +5114,7 @@ VS_SDK_PLATFORM_NAME_2013=
|
|||||||
#CUSTOM_AUTOCONF_INCLUDE
|
#CUSTOM_AUTOCONF_INCLUDE
|
||||||
|
|
||||||
# Do not change or remove the following line, it is needed for consistency checks:
|
# Do not change or remove the following line, it is needed for consistency checks:
|
||||||
DATE_WHEN_GENERATED=1508320135
|
DATE_WHEN_GENERATED=1508415370
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
@ -25660,12 +25659,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -25862,12 +25861,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -26052,12 +26051,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -26241,12 +26240,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -26430,12 +26429,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -26610,12 +26609,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -26941,12 +26940,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -27272,12 +27271,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -27490,12 +27489,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -27673,12 +27672,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -27884,12 +27883,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -28067,12 +28066,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -28278,12 +28277,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -28461,12 +28460,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -28672,12 +28671,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -28855,12 +28854,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -29053,12 +29052,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -29234,12 +29233,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -29433,12 +29432,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -29614,12 +29613,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -29812,12 +29811,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -29993,12 +29992,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -30192,12 +30191,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -30373,12 +30372,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -30553,12 +30552,12 @@ $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
|
|||||||
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1`
|
||||||
|
|
||||||
# Extra M4 quote needed to protect [] in grep expression.
|
# Extra M4 quote needed to protect [] in grep expression.
|
||||||
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"|(1\.[89]\.)'`
|
FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'`
|
||||||
if test "x$FOUND_CORRECT_VERSION" = x; then
|
if test "x$FOUND_CORRECT_VERSION" = x; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
|
||||||
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8, 9 or 10)" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5
|
||||||
$as_echo "$as_me: (Your Boot JDK must be version 8, 9 or 10)" >&6;}
|
$as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;}
|
||||||
BOOT_JDK_FOUND=no
|
BOOT_JDK_FOUND=no
|
||||||
else
|
else
|
||||||
# We're done! :-)
|
# We're done! :-)
|
||||||
@ -31448,21 +31447,9 @@ $as_echo "$tool_specified" >&6; }
|
|||||||
|
|
||||||
# Finally, set some other options...
|
# Finally, set some other options...
|
||||||
|
|
||||||
# When compiling code to be executed by the Boot JDK, force jdk8 compatibility.
|
# When compiling code to be executed by the Boot JDK, force compatibility with the
|
||||||
BOOT_JDK_SOURCETARGET="-source 8 -target 8"
|
# oldest supported bootjdk.
|
||||||
|
BOOT_JDK_SOURCETARGET="-source 9 -target 9"
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5
|
|
||||||
$as_echo_n "checking if Boot JDK supports modules... " >&6; }
|
|
||||||
if "$JAVA" --list-modules > /dev/null 2>&1; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
||||||
$as_echo "yes" >&6; }
|
|
||||||
BOOT_JDK_MODULAR="true"
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
BOOT_JDK_MODULAR="false"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -561,38 +561,35 @@ JAVAC_FLAGS?=@JAVAC_FLAGS@
|
|||||||
BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
|
BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
|
||||||
BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
|
BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
|
||||||
|
|
||||||
# Use ?= as this can be overridden from bootcycle-spec.gmk
|
# Interim langtools and rmic modules and arguments
|
||||||
BOOT_JDK_MODULAR ?= @BOOT_JDK_MODULAR@
|
INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.jdeps jdk.javadoc
|
||||||
|
INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
|
||||||
|
INTERIM_LANGTOOLS_ADD_EXPORTS := \
|
||||||
|
--add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
|
||||||
|
--add-exports java.base/jdk.internal.util.jar=jdk.jdeps.interim \
|
||||||
|
--add-exports java.base/jdk.internal.misc=jdk.jdeps.interim \
|
||||||
|
#
|
||||||
|
INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
|
||||||
|
$(INTERIM_LANGTOOLS_MODULES))))
|
||||||
|
INTERIM_LANGTOOLS_ARGS := \
|
||||||
|
--limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
|
||||||
|
--add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
|
||||||
|
--module-path $(BUILDTOOLS_OUTPUTDIR)/interim_modules \
|
||||||
|
$(INTERIM_LANGTOOLS_ADD_EXPORTS) \
|
||||||
|
#
|
||||||
|
JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
|
||||||
|
JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
|
||||||
|
|
||||||
|
INTERIM_RMIC_BASE_MODULES := jdk.rmic
|
||||||
|
INTERIM_RMIC_MODULES := $(addsuffix .interim, $(INTERIM_RMIC_BASE_MODULES))
|
||||||
|
INTERIM_RMIC_ADD_EXPORTS := \
|
||||||
|
--add-exports java.corba/com.sun.corba.se.impl.util=jdk.rmic.interim \
|
||||||
|
#
|
||||||
|
INTERIM_RMIC_ARGS := --limit-modules java.base,jdk.compiler,jdk.javadoc,java.corba \
|
||||||
|
--module-path $(BUILDTOOLS_OUTPUTDIR)/interim_modules \
|
||||||
|
$(INTERIM_RMIC_ADD_EXPORTS) \
|
||||||
|
#
|
||||||
|
|
||||||
INTERIM_LANGTOOLS_OVERRIDE_MODULES := java.compiler jdk.compiler \
|
|
||||||
jdk.jdeps jdk.javadoc
|
|
||||||
INTERIM_RMIC_OVERRIDE_MODULES := jdk.rmic
|
|
||||||
ifeq ($(BOOT_JDK_MODULAR), true)
|
|
||||||
INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS = $(foreach m, \
|
|
||||||
$(INTERIM_LANGTOOLS_OVERRIDE_MODULES), \
|
|
||||||
--patch-module $m=$(BUILDTOOLS_OUTPUTDIR)/override_modules/$m)
|
|
||||||
INTERIM_RMIC_OVERRIDE_MODULES_ARGS = $(foreach m, \
|
|
||||||
$(INTERIM_LANGTOOLS_OVERRIDE_MODULES) \
|
|
||||||
$(INTERIM_RMIC_OVERRIDE_MODULES), \
|
|
||||||
--patch-module $m=$(BUILDTOOLS_OUTPUTDIR)/override_modules/$m)
|
|
||||||
INTERIM_LANGTOOLS_ARGS = $(INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS)
|
|
||||||
JAVAC_MAIN_CLASS = -m jdk.compiler/com.sun.tools.javac.Main
|
|
||||||
JAVADOC_MAIN_CLASS = -m jdk.javadoc/jdk.javadoc.internal.tool.Main
|
|
||||||
else
|
|
||||||
INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS = \
|
|
||||||
-Xbootclasspath/p:$(call PathList, \
|
|
||||||
$(addprefix $(BUILDTOOLS_OUTPUTDIR)/override_modules/, \
|
|
||||||
$(INTERIM_LANGTOOLS_OVERRIDE_MODULES)))
|
|
||||||
INTERIM_RMIC_OVERRIDE_MODULES_ARGS = \
|
|
||||||
-Xbootclasspath/p:$(call PathList, \
|
|
||||||
$(addprefix $(BUILDTOOLS_OUTPUTDIR)/override_modules/, \
|
|
||||||
$(INTERIM_LANGTOOLS_OVERRIDE_MODULES) \
|
|
||||||
$(INTERIM_RMIC_OVERRIDE_MODULES)))
|
|
||||||
INTERIM_LANGTOOLS_ARGS = $(INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS) \
|
|
||||||
-cp $(BUILDTOOLS_OUTPUTDIR)/override_modules/jdk.compiler
|
|
||||||
JAVAC_MAIN_CLASS = com.sun.tools.javac.Main
|
|
||||||
JAVADOC_MAIN_CLASS = jdk.javadoc.internal.tool.Main
|
|
||||||
endif
|
|
||||||
# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
|
# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
|
||||||
# Use = assignment to be able to override in bootcycle-spec.gmk
|
# Use = assignment to be able to override in bootcycle-spec.gmk
|
||||||
NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
|
NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
|
||||||
|
@ -166,6 +166,8 @@ endef
|
|||||||
# INCLUDE_FILES:="com/sun/SolarisFoobar.java" means only compile this file!
|
# INCLUDE_FILES:="com/sun/SolarisFoobar.java" means only compile this file!
|
||||||
# EXCLUDE_FILES:="com/sun/SolarisFoobar.java" means do not compile this particular file!
|
# EXCLUDE_FILES:="com/sun/SolarisFoobar.java" means do not compile this particular file!
|
||||||
# "SolarisFoobar.java" means do not compile SolarisFoobar, wherever it is found.
|
# "SolarisFoobar.java" means do not compile SolarisFoobar, wherever it is found.
|
||||||
|
# EXTRA_FILES:=List of extra source files to include in compilation. Can be used to
|
||||||
|
# specify files that need to be generated by other rules first.
|
||||||
# HEADERS:=path to directory where all generated c-headers are written.
|
# HEADERS:=path to directory where all generated c-headers are written.
|
||||||
# DEPENDS:=Extra dependecy
|
# DEPENDS:=Extra dependecy
|
||||||
# DISABLE_SJAVAC:=Explicitly disable the use of sjavac for this compilation unit.
|
# DISABLE_SJAVAC:=Explicitly disable the use of sjavac for this compilation unit.
|
||||||
@ -203,16 +205,23 @@ define SetupJavaCompilationBody
|
|||||||
$1_MODULE_SUBDIR := /$$($1_MODULE)
|
$1_MODULE_SUBDIR := /$$($1_MODULE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Make sure the dirs exist.
|
# Make sure the dirs exist, or that one of the EXTRA_FILES, that may not
|
||||||
$$(foreach d,$$($1_SRC), $$(if $$(wildcard $$d),,$$(error SRC specified to SetupJavaCompilation $1 contains missing directory >$$d<)))
|
# exist yet, is in it.
|
||||||
|
$$(foreach d, $$($1_SRC), \
|
||||||
|
$$(if $$(wildcard $$d), , \
|
||||||
|
$$(if $$(filter $$d%, $$($1_EXTRA_FILES)), , \
|
||||||
|
$$(error SRC specified to SetupJavaCompilation $1 contains missing directory >$$d<) \
|
||||||
|
) \
|
||||||
|
) \
|
||||||
|
)
|
||||||
$$(call MakeDir,$$($1_BIN))
|
$$(call MakeDir,$$($1_BIN))
|
||||||
# Add all source roots to the find cache since we are likely going to run find
|
# Add all source roots to the find cache since we are likely going to run find
|
||||||
# on these more than once. The cache will only be updated if necessary.
|
# on these more than once. The cache will only be updated if necessary.
|
||||||
$$(eval $$(call FillCacheFind,$$($1_SRC)))
|
$$(eval $$(call FillCacheFind, $$($1_SRC)))
|
||||||
# Find all files in the source trees. Preserve order of source roots so that
|
# Find all files in the source trees. Preserve order of source roots so that
|
||||||
# the first version in case of multiple instances of the same file is selected.
|
# the first version in case of multiple instances of the same file is selected.
|
||||||
# CacheFind does not preserve order so need to call it for each root.
|
# CacheFind does not preserve order so need to call it for each root.
|
||||||
$1_ALL_SRCS += $$(foreach s, $$($1_SRC), $$(call CacheFind, $$(s)))
|
$1_ALL_SRCS += $$($1_EXTRA_FILES) $$(foreach s, $$($1_SRC), $$(call CacheFind, $$s))
|
||||||
# Extract the java files.
|
# Extract the java files.
|
||||||
$1_SRCS := $$(filter %.java, $$($1_ALL_SRCS))
|
$1_SRCS := $$(filter %.java, $$($1_ALL_SRCS))
|
||||||
|
|
||||||
@ -235,7 +244,7 @@ define SetupJavaCompilationBody
|
|||||||
$1_SRCS := $$(filter-out $$($1_EXCLUDE_PATTERN), $$($1_SRCS))
|
$1_SRCS := $$(filter-out $$($1_EXCLUDE_PATTERN), $$($1_SRCS))
|
||||||
endif
|
endif
|
||||||
ifneq ($$($1_INCLUDE_PATTERN), )
|
ifneq ($$($1_INCLUDE_PATTERN), )
|
||||||
$1_SRCS := $$(filter $$($1_INCLUDE_PATTERN), $$($1_SRCS))
|
$1_SRCS := $$(filter $$($1_INCLUDE_PATTERN) $$($1_EXTRA_FILES), $$($1_SRCS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($$($1_KEEP_DUPS), true)
|
ifneq ($$($1_KEEP_DUPS), true)
|
||||||
|
@ -689,8 +689,9 @@ ifneq ($(DISABLE_CACHE_FIND), true)
|
|||||||
ifneq ($$(FIND_CACHE_NEW_DIRS), )
|
ifneq ($$(FIND_CACHE_NEW_DIRS), )
|
||||||
# Remove any trailing slash from dirs in the cache dir list
|
# Remove any trailing slash from dirs in the cache dir list
|
||||||
FIND_CACHE_DIRS += $$(patsubst %/,%, $$(FIND_CACHE_NEW_DIRS))
|
FIND_CACHE_DIRS += $$(patsubst %/,%, $$(FIND_CACHE_NEW_DIRS))
|
||||||
FIND_CACHE := $$(sort $$(FIND_CACHE) $$(shell $(FIND) $$(FIND_CACHE_NEW_DIRS) \
|
FIND_CACHE := $$(sort $$(FIND_CACHE) \
|
||||||
\( -type f -o -type l \) $2 | $(TR) ' ' '?'))
|
$$(shell $(FIND) $$(wildcard $$(FIND_CACHE_NEW_DIRS)) \
|
||||||
|
\( -type f -o -type l \) $2 | $(TR) ' ' '?'))
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -706,7 +707,7 @@ ifneq ($(DISABLE_CACHE_FIND), true)
|
|||||||
# Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
|
# Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
|
||||||
define CacheFind
|
define CacheFind
|
||||||
$(if $(filter-out $(addsuffix /%,- $(FIND_CACHE_DIRS)) $(FIND_CACHE_DIRS),$1), \
|
$(if $(filter-out $(addsuffix /%,- $(FIND_CACHE_DIRS)) $(FIND_CACHE_DIRS),$1), \
|
||||||
$(if $(wildcard $1), $(shell $(FIND) $1 \( -type f -o -type l \) $2 \
|
$(if $(wildcard $1), $(shell $(FIND) $(wildcard $1) \( -type f -o -type l \) $2 \
|
||||||
| $(TR) ' ' '?')), \
|
| $(TR) ' ' '?')), \
|
||||||
$(filter $(addsuffix /%,$(patsubst %/,%,$1)) $1,$(FIND_CACHE)))
|
$(filter $(addsuffix /%,$(patsubst %/,%,$1)) $1,$(FIND_CACHE)))
|
||||||
endef
|
endef
|
||||||
@ -716,7 +717,9 @@ else
|
|||||||
# Param 1 - Dirs to find in
|
# Param 1 - Dirs to find in
|
||||||
# Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
|
# Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
|
||||||
define CacheFind
|
define CacheFind
|
||||||
$(shell $(FIND) $1 \( -type f -o -type l \) $2 | $(TR) ' ' '?')
|
$(if $(wildcard $1, \
|
||||||
|
$(shell $(FIND) $(wildcard $1) \( -type f -o -type l \) $2 | $(TR) ' ' '?') \
|
||||||
|
)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -95,4 +95,15 @@ $(eval $(call SetupJavaCompiler,GENERATE_USINGJDKBYTECODE, \
|
|||||||
SERVER_DIR := $(SJAVAC_SERVER_DIR), \
|
SERVER_DIR := $(SJAVAC_SERVER_DIR), \
|
||||||
SERVER_JVM := $(SJAVAC_SERVER_JAVA)))
|
SERVER_JVM := $(SJAVAC_SERVER_JAVA)))
|
||||||
|
|
||||||
|
# Use boot javac to generate JDK 8 compatible class files explicitly
|
||||||
|
$(eval $(call SetupJavaCompiler,GENERATE_8_BYTECODE, \
|
||||||
|
JAVAC := $(JAVAC), \
|
||||||
|
FLAGS := \
|
||||||
|
$(JAVA_TOOL_FLAGS_SMALL) \
|
||||||
|
--release 8 \
|
||||||
|
-XDignore.symbol.file=true -g \
|
||||||
|
-Xlint:all -Werror, \
|
||||||
|
DISABLE_SJAVAC := true, \
|
||||||
|
))
|
||||||
|
|
||||||
endif # _SETUP_GMK
|
endif # _SETUP_GMK
|
||||||
|
@ -381,25 +381,6 @@ var getJibProfilesCommon = function (input, data) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
var boot_jdk_revision = "8";
|
|
||||||
var boot_jdk_subdirpart = "1.8.0";
|
|
||||||
// JDK 8 does not work on sparc M7 cpus, need a newer update when building
|
|
||||||
// on such hardware.
|
|
||||||
if (input.build_cpu == "sparcv9") {
|
|
||||||
var cpu_brand = $EXEC("bash -c \"kstat -m cpu_info | grep brand | head -n1 | awk '{ print \$2 }'\"");
|
|
||||||
if (cpu_brand.trim().match('SPARC-.[78]')) {
|
|
||||||
boot_jdk_revision = "8u20";
|
|
||||||
boot_jdk_subdirpart = "1.8.0_20";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
common.boot_jdk_revision = boot_jdk_revision;
|
|
||||||
common.boot_jdk_subdirpart = boot_jdk_subdirpart;
|
|
||||||
common.boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk"
|
|
||||||
+ common.boot_jdk_subdirpart
|
|
||||||
+ (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
|
|
||||||
common.boot_jdk_platform = input.build_os + "-"
|
|
||||||
+ (input.build_cpu == "x86" ? "i586" : input.build_cpu);
|
|
||||||
|
|
||||||
return common;
|
return common;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1027,17 +1008,24 @@ var getJibProfilesDependencies = function (input, common) {
|
|||||||
? input.target_os + "_x64"
|
? input.target_os + "_x64"
|
||||||
: input.target_platform);
|
: input.target_platform);
|
||||||
|
|
||||||
|
var boot_jdk_version = "9";
|
||||||
|
var boot_jdk_home = input.get("boot_jdk", "home_path") + "/jdk-"
|
||||||
|
+ boot_jdk_version
|
||||||
|
+ (input.build_os == "macosx" ? ".jdk/Contents/Home" : "");
|
||||||
|
var boot_jdk_platform = (input.build_os == "macosx" ? "osx" : input.build_os)
|
||||||
|
+ "-" + input.build_cpu;
|
||||||
|
|
||||||
var dependencies = {
|
var dependencies = {
|
||||||
|
|
||||||
boot_jdk: {
|
boot_jdk: {
|
||||||
server: "javare",
|
server: "jpg",
|
||||||
module: "jdk",
|
product: "jdk",
|
||||||
revision: common.boot_jdk_revision,
|
version: boot_jdk_version,
|
||||||
checksum_file: common.boot_jdk_platform + "/MD5_VALUES",
|
build_number: "181",
|
||||||
file: common.boot_jdk_platform + "/jdk-" + common.boot_jdk_revision
|
file: "bundles/" + boot_jdk_platform + "/jdk-" + boot_jdk_version + "_"
|
||||||
+ "-" + common.boot_jdk_platform + ".tar.gz",
|
+ boot_jdk_platform + "_bin.tar.gz",
|
||||||
configure_args: "--with-boot-jdk=" + common.boot_jdk_home,
|
configure_args: "--with-boot-jdk=" + boot_jdk_home,
|
||||||
environment_path: common.boot_jdk_home + "/bin"
|
environment_path: boot_jdk_home + "/bin"
|
||||||
},
|
},
|
||||||
|
|
||||||
devkit: {
|
devkit: {
|
||||||
|
@ -41,23 +41,23 @@ CT_MODULESOURCEPATH := $(call GetModuleSrcPath)
|
|||||||
|
|
||||||
CT_DATA_DESCRIPTION ?= $(TOPDIR)/make/data/symbols/symbols
|
CT_DATA_DESCRIPTION ?= $(TOPDIR)/make/data/symbols/symbols
|
||||||
|
|
||||||
|
COMPILECREATESYMBOLS_ADD_EXPORTS := \
|
||||||
|
--add-exports jdk.compiler.interim/com.sun.tools.javac.api=ALL-UNNAMED \
|
||||||
|
--add-exports jdk.compiler.interim/com.sun.tools.javac.code=ALL-UNNAMED \
|
||||||
|
--add-exports jdk.compiler.interim/com.sun.tools.javac.util=ALL-UNNAMED \
|
||||||
|
--add-exports jdk.compiler.interim/com.sun.tools.javac.jvm=ALL-UNNAMED \
|
||||||
|
--add-exports jdk.jdeps.interim/com.sun.tools.classfile=ALL-UNNAMED \
|
||||||
|
#
|
||||||
|
|
||||||
$(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \
|
$(eval $(call SetupJavaCompilation, COMPILE_CREATE_SYMBOLS, \
|
||||||
SETUP := GENERATE_OLDBYTECODE, \
|
SETUP := GENERATE_OLDBYTECODE, \
|
||||||
SRC := $(TOPDIR)/make/langtools/src/classes, \
|
SRC := $(TOPDIR)/make/langtools/src/classes, \
|
||||||
INCLUDES := build/tools/symbolgenerator, \
|
INCLUDES := build/tools/symbolgenerator, \
|
||||||
ADD_JAVAC_FLAGS := -Xbootclasspath/p:"$(INTERIM_LANGTOOLS_JAR)", \
|
|
||||||
BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols, \
|
BIN := $(BUILDTOOLS_OUTPUTDIR)/create_symbols, \
|
||||||
|
ADD_JAVAC_FLAGS := $(INTERIM_LANGTOOLS_ARGS) \
|
||||||
|
$(COMPILECREATESYMBOLS_ADD_EXPORTS), \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(BOOT_JDK_MODULAR), true)
|
|
||||||
COMPILECREATESYMBOLS_ADD_EXPORTS := \
|
|
||||||
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
|
|
||||||
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
|
|
||||||
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
|
|
||||||
--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED \
|
|
||||||
--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(SUPPORT_OUTPUTDIR)/symbols/ct.sym-files/_the.symbols: \
|
$(SUPPORT_OUTPUTDIR)/symbols/ct.sym-files/_the.symbols: \
|
||||||
$(COMPILE_CREATE_SYMBOLS) \
|
$(COMPILE_CREATE_SYMBOLS) \
|
||||||
$(wildcard $(TOPDIR)/make/data/symbols/*) \
|
$(wildcard $(TOPDIR)/make/data/symbols/*) \
|
||||||
|
@ -60,19 +60,13 @@ $(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR_LD, \
|
|||||||
$(TEXT_PKG_LD)/BreakIteratorInfo_th.java, \
|
$(TEXT_PKG_LD)/BreakIteratorInfo_th.java, \
|
||||||
BIN := $(BREAK_ITERATOR_CLASSES)/jdk.localedata))
|
BIN := $(BREAK_ITERATOR_CLASSES)/jdk.localedata))
|
||||||
|
|
||||||
ifeq ($(BOOT_JDK_MODULAR), true)
|
BREAK_ITERATOR_BOOTCLASSPATH := \
|
||||||
BREAK_ITERATOR_BOOTCLASSPATH := \
|
--patch-module java.base=$(BREAK_ITERATOR_CLASSES)/java.base \
|
||||||
--patch-module java.base=$(BREAK_ITERATOR_CLASSES)/java.base \
|
--patch-module jdk.localedata=$(BREAK_ITERATOR_CLASSES)/jdk.localedata \
|
||||||
--patch-module jdk.localedata=$(BREAK_ITERATOR_CLASSES)/jdk.localedata \
|
--add-exports java.base/sun.text=ALL-UNNAMED \
|
||||||
--add-exports java.base/sun.text=ALL-UNNAMED \
|
--add-exports java.base/sun.text.resources=ALL-UNNAMED \
|
||||||
--add-exports java.base/sun.text.resources=ALL-UNNAMED \
|
--add-exports jdk.localedata/sun.text.resources.ext=ALL-UNNAMED \
|
||||||
--add-exports jdk.localedata/sun.text.resources.ext=ALL-UNNAMED \
|
#
|
||||||
#
|
|
||||||
else
|
|
||||||
BREAK_ITERATOR_BOOTCLASSPATH := -Xbootclasspath/p:$(call PathList, \
|
|
||||||
$(BREAK_ITERATOR_CLASSES)/java.base \
|
|
||||||
$(BREAK_ITERATOR_CLASSES)/jdk.localedata)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Generate data resource files.
|
# Generate data resource files.
|
||||||
# input
|
# input
|
||||||
|
@ -39,6 +39,7 @@ import javax.tools.JavaCompiler;
|
|||||||
import javax.tools.ToolProvider;
|
import javax.tools.ToolProvider;
|
||||||
|
|
||||||
import com.sun.tools.javac.api.JavacTaskImpl;
|
import com.sun.tools.javac.api.JavacTaskImpl;
|
||||||
|
import com.sun.tools.javac.api.JavacTool;
|
||||||
import com.sun.tools.javac.code.Symbol.ModuleSymbol;
|
import com.sun.tools.javac.code.Symbol.ModuleSymbol;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -56,7 +57,7 @@ public class TransitiveDependencies {
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
|
JavaCompiler compiler = JavacTool.create();
|
||||||
List<String> options = Arrays.asList("-source", "10",
|
List<String> options = Arrays.asList("-source", "10",
|
||||||
"-target", "10",
|
"-target", "10",
|
||||||
"-proc:only",
|
"-proc:only",
|
||||||
|
@ -31,13 +31,9 @@ include RMICompilation.gmk
|
|||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
ifeq ($(BOOT_JDK_MODULAR), true)
|
RMIC_MAIN_CLASS := -m jdk.rmic.interim/sun.rmi.rmic.Main
|
||||||
RMIC_MAIN_CLASS := -m jdk.rmic/sun.rmi.rmic.Main
|
|
||||||
else
|
|
||||||
RMIC_MAIN_CLASS := sun.rmi.rmic.Main
|
|
||||||
endif
|
|
||||||
|
|
||||||
RMIC := $(JAVA_SMALL) $(INTERIM_RMIC_OVERRIDE_MODULES_ARGS) $(RMIC_MAIN_CLASS)
|
RMIC := $(JAVA_SMALL) $(INTERIM_RMIC_ARGS) $(RMIC_MAIN_CLASS)
|
||||||
|
|
||||||
CLASSES_DIR := $(JDK_OUTPUTDIR)/modules
|
CLASSES_DIR := $(JDK_OUTPUTDIR)/modules
|
||||||
# NOTE: If the smart javac dependency management is reintroduced, these classes
|
# NOTE: If the smart javac dependency management is reintroduced, these classes
|
||||||
|
Loading…
Reference in New Issue
Block a user