From 7adce1bc9cfc5aa3ed020154c31203d32cbf0519 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Thu, 16 Feb 2023 13:20:47 +0100 Subject: [PATCH] Split run scripts for different components --- shells/objectgericht-project.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/shells/objectgericht-project.nix b/shells/objectgericht-project.nix index 5fd39a40..4b717f12 100644 --- a/shells/objectgericht-project.nix +++ b/shells/objectgericht-project.nix @@ -13,10 +13,16 @@ ''; } { - name = "run"; + name = "client"; category = "development"; - help = "Run application"; - command = "mvn javafx:run"; + help = "Run client"; + command = "mvn package && java -cp target/dominion-1.0-SNAPSHOT.jar:repo/be/ugent/objprog/commhub/1.0/commhub-1.0.jar be.ugent.dominion.Main client"; + } + { + name = "server"; + category = "development"; + help = "Run server"; + command = "mvn package && java -cp target/dominion-1.0-SNAPSHOT.jar:repo/be/ugent/objprog/commhub/1.0/commhub-1.0.jar be.ugent.dominion.Main server"; } { name = "clean";