From 1be9a9df22a1fe613b82f3117492968dce24cc1d Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Tue, 17 Aug 2021 21:01:33 +0100 Subject: [PATCH] Uncomment the actually useful bits! --- go4it | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go4it b/go4it index a714f7c64..390ca3420 100755 --- a/go4it +++ b/go4it @@ -103,8 +103,8 @@ def gen_runs() -> None: """ Generate .idea run files """ - # setup() - # subprocess.check_call(["./gradlew", "--no-daemon", "genRuns"]) + setup() + subprocess.check_call(["./gradlew", "--no-daemon", "genIntellijRuns"]) re = regex.compile(r"(mc-.*)_run(.*)\.xml") for path in pathlib.Path(".idea/runConfigurations").glob("*.xml"): @@ -120,7 +120,7 @@ def gen_runs() -> None: print("Cannot find Java for branch") continue - component = 'testMod' if name == 'TestServer' else 'main' + component = 'testMod' if name.startswith('Test') else 'main' xml = ET.parse(path) module = xml.find("./configuration/module") if module is None: