diff options
author | modmuss50 <modmuss50@gmail.com> | 2021-10-24 14:11:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 14:11:01 +0100 |
commit | 61b5cfa733559b2c631bd25eec1b89e63ba76620 (patch) | |
tree | e8d2bc3cd1caede5a3367044b1c1ced1e48a33d5 /src/test/resources/projects/runconfigs | |
parent | 7359dc4e98c2f33b8ebc199c1aea3c2482a1c7f7 (diff) | |
download | architectury-loom-61b5cfa733559b2c631bd25eec1b89e63ba76620.tar.gz architectury-loom-61b5cfa733559b2c631bd25eec1b89e63ba76620.tar.bz2 architectury-loom-61b5cfa733559b2c631bd25eec1b89e63ba76620.zip |
Improve run config argument handling, should work with spaces a bit better. (#524)
Diffstat (limited to 'src/test/resources/projects/runconfigs')
-rw-r--r-- | src/test/resources/projects/runconfigs/build.gradle | 4 | ||||
-rw-r--r-- | src/test/resources/projects/runconfigs/src/main/java/net/fabricmc/example/ExampleMod.java | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/test/resources/projects/runconfigs/build.gradle b/src/test/resources/projects/runconfigs/build.gradle index dbdd21e5..9ed945c7 100644 --- a/src/test/resources/projects/runconfigs/build.gradle +++ b/src/test/resources/projects/runconfigs/build.gradle @@ -21,6 +21,10 @@ loom { vmArg "-Dfabric.autoTest" } } + + runConfigs.configureEach { + vmArg "-Dfabric.loom.test.space=This contains a space" + } } archivesBaseName = "fabric-example-mod" diff --git a/src/test/resources/projects/runconfigs/src/main/java/net/fabricmc/example/ExampleMod.java b/src/test/resources/projects/runconfigs/src/main/java/net/fabricmc/example/ExampleMod.java index 21928e56..f756397f 100644 --- a/src/test/resources/projects/runconfigs/src/main/java/net/fabricmc/example/ExampleMod.java +++ b/src/test/resources/projects/runconfigs/src/main/java/net/fabricmc/example/ExampleMod.java @@ -7,6 +7,8 @@ public class ExampleMod implements ModInitializer { public void onInitialize() { System.out.println("Hello Fabric world!"); + System.out.println(System.getProperty("fabric.loom.test.space")); + // Quit now, we dont need to load the whole game to know the run configs are works System.exit(0); } |