From 378bff4509b9d9669f83ea300799234828a7e679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20K=C3=A4mpf?= <48529807+PlatinPython@users.noreply.github.com> Date: Wed, 9 Aug 2023 10:58:54 +0200 Subject: [PATCH] Make each run config use its own subfolder and add 'run-data' to .gitignore (#7) --- .gitignore | 3 ++- build.gradle | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 322e5e1..da8856f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,5 @@ build # other eclipse -run \ No newline at end of file +run +run-data \ No newline at end of file diff --git a/build.gradle b/build.gradle index a9a7d11..78c0879 100644 --- a/build.gradle +++ b/build.gradle @@ -62,7 +62,7 @@ minecraft { runs { // applies to all the run configs below configureEach { - workingDirectory project.file('run') + workingDirectory project.file("run/${it.name}") // Recommended logging data for a userdev environment // The markers can be added/remove as needed separated by commas. @@ -101,8 +101,8 @@ minecraft { } data { - // example of overriding the workingDirectory set in configureEach above - workingDirectory project.file('run-data') + // example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it + // workingDirectory project.file('run-data') // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources. args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')