From 59823879e62d13d37630f4a2659da77a68793c75 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Sun, 7 Jul 2024 03:24:24 +0200 Subject: [PATCH] Fix up run directories --- .../src/main/java/fmlbuild/InstallProductionClientTask.java | 1 + .../src/main/java/fmlbuild/InstallProductionServerTask.java | 1 + test/build.gradle | 3 +++ 3 files changed, 5 insertions(+) diff --git a/buildSrc/src/main/java/fmlbuild/InstallProductionClientTask.java b/buildSrc/src/main/java/fmlbuild/InstallProductionClientTask.java index 35afbcfa9..1b41b8b45 100644 --- a/buildSrc/src/main/java/fmlbuild/InstallProductionClientTask.java +++ b/buildSrc/src/main/java/fmlbuild/InstallProductionClientTask.java @@ -98,6 +98,7 @@ public void install() throws Exception { Files.writeString(profilesJsonPath, "{}"); execOperations.javaexec(spec -> { + spec.workingDir(installDir); spec.classpath(getInstaller().getSingleFile()); spec.args("--install-client", installDir.toString()); try { diff --git a/buildSrc/src/main/java/fmlbuild/InstallProductionServerTask.java b/buildSrc/src/main/java/fmlbuild/InstallProductionServerTask.java index 363db59f2..680132bdc 100644 --- a/buildSrc/src/main/java/fmlbuild/InstallProductionServerTask.java +++ b/buildSrc/src/main/java/fmlbuild/InstallProductionServerTask.java @@ -81,6 +81,7 @@ public void install() throws Exception { Files.createDirectories(installDir); execOperations.javaexec(spec -> { + spec.workingDir(installDir); spec.classpath(getInstaller().getSingleFile()); spec.args("--install-server", installDir.toString()); try { diff --git a/test/build.gradle b/test/build.gradle index 9b0219499..211aac5f4 100644 --- a/test/build.gradle +++ b/test/build.gradle @@ -10,12 +10,15 @@ neoForge { runs { client { client() + gameDirectory = file("build/runs/client") } server { server() + gameDirectory = file("build/runs/server") } data { data() + gameDirectory = file("build/runs/data") } } }