1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-15 12:40:30 +00:00

Also propogate the Java launcher when copying tasks

We removed the config which ran all JavaExec tasks with the given
launcher, so need to override this again.

A little abusrd that this isn't done by Gradle, but there we go.
This commit is contained in:
Jonathan Coates 2022-06-23 22:24:53 +01:00
parent d1e952770d
commit 718111787c
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -417,6 +417,7 @@ def testServer = tasks.register("testServer", JavaExec.class) {
exec.copyTo(it) exec.copyTo(it)
setClasspath(exec.getClasspath()) setClasspath(exec.getClasspath())
mainClass = exec.mainClass mainClass = exec.mainClass
javaLauncher = exec.javaLauncher
setArgs(exec.getArgs()) setArgs(exec.getArgs())
// Jacoco and modlauncher don't play well together as the classes loaded in-game don't // Jacoco and modlauncher don't play well together as the classes loaded in-game don't