From c458ff17fd40dca78edcd7fdeea233a5d7fe1a17 Mon Sep 17 00:00:00 2001 From: sciwhiz12 Date: Sun, 6 Mar 2022 01:31:53 +0000 Subject: [PATCH] Add missing module exports arg to server arguments list (#8500) --- build.gradle | 3 +++ server_files/args.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 4bf79c48ba..9bc9df11b7 100644 --- a/build.gradle +++ b/build.gradle @@ -436,6 +436,7 @@ def sharedFmlonlyForge = { Project prj -> run.jvmArgs '-p', prj.configurations.moduleonly.files.collect { it.path }.join(File.pathSeparator) } run.jvmArgs '--add-modules', 'ALL-MODULE-PATH' + // Additions to these JVM module args should be mirrored to server_files/args.txt and other similar blocks in the buildscript run.jvmArgs '--add-opens', 'java.base/java.util.jar=cpw.mods.securejarhandler' run.jvmArgs '--add-exports', 'java.base/sun.security.util=cpw.mods.securejarhandler' run.jvmArgs '--add-exports', 'jdk.naming.dns/com.sun.jndi.dns=java.naming' @@ -624,6 +625,7 @@ project(':fmlonly') { '-DlibraryDirectory=${library_directory}', '-p', Util.getArtifacts(project, configurations.moduleonly, false).values().collect{"\${library_directory}/${it.downloads.artifact.path}"}.join('${classpath_separator}'), '--add-modules', 'ALL-MODULE-PATH', + // Additions to these JVM module args should be mirrored to server_files/args.txt and other similar blocks in the buildscript '--add-opens', 'java.base/java.util.jar=cpw.mods.securejarhandler', '--add-exports', 'java.base/sun.security.util=cpw.mods.securejarhandler', '--add-exports', 'jdk.naming.dns/com.sun.jndi.dns=java.naming' @@ -1194,6 +1196,7 @@ project(':forge') { '-DlibraryDirectory=${library_directory}', '-p', Util.getArtifacts(project, configurations.moduleonly, false).values().collect{'${library_directory}/' + it.downloads.artifact.path}.join('${classpath_separator}'), '--add-modules', 'ALL-MODULE-PATH', + // Additions to these JVM module args should be mirrored to server_files/args.txt and other similar blocks in the buildscript '--add-opens', 'java.base/java.util.jar=cpw.mods.securejarhandler', '--add-exports', 'java.base/sun.security.util=cpw.mods.securejarhandler', '--add-exports', 'jdk.naming.dns/com.sun.jndi.dns=java.naming' diff --git a/server_files/args.txt b/server_files/args.txt index 4551706d64..17252fa80f 100644 --- a/server_files/args.txt +++ b/server_files/args.txt @@ -2,6 +2,7 @@ --add-modules @MODULES@ --add-opens java.base/java.util.jar=cpw.mods.securejarhandler --add-exports java.base/sun.security.util=cpw.mods.securejarhandler +--add-exports jdk.naming.dns/com.sun.jndi.dns=java.naming -DignoreList=@IGNORE_LIST@ -DlibraryDirectory=libraries -DlegacyClassPath=@CLASS_PATH@