8385817: Headless jdk still contains bin/jconsole

Reviewed-by: erikj, syan, kevinw
This commit is contained in:
Matthias Baesken 2026-06-15 07:27:05 +00:00
parent b9f7bd2be8
commit c2df7329a8

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2026, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@ -30,15 +30,15 @@ include LauncherCommon.gmk
################################################################################
## Build jconsole
################################################################################
$(eval $(call SetupBuildLauncher, jconsole, \
MAIN_CLASS := sun.tools.jconsole.JConsole, \
JAVA_ARGS := \
--add-opens java.base/java.io=jdk.jconsole \
--add-modules ALL-DEFAULT \
-Djconsole.showOutputViewer \
-Djdk.attach.allowAttachSelf=true, \
WINDOWS_JAVAW := true, \
))
ifneq ($(ENABLE_HEADLESS_ONLY), true)
$(eval $(call SetupBuildLauncher, jconsole, \
MAIN_CLASS := sun.tools.jconsole.JConsole, \
JAVA_ARGS := \
--add-opens java.base/java.io=jdk.jconsole \
--add-modules ALL-DEFAULT \
-Djconsole.showOutputViewer \
-Djdk.attach.allowAttachSelf=true, \
WINDOWS_JAVAW := true, \
))
endif
################################################################################