From 576d5f741dc6ba105d69cadfc75400796a9f2f61 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Sat, 8 Dec 2018 00:53:45 +0100 Subject: [PATCH] Desktop.md: instructions to run standalone jar (#613) --- docs/desktop.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/desktop.md b/docs/desktop.md index 20150e7f..16de8959 100644 --- a/docs/desktop.md +++ b/docs/desktop.md @@ -6,3 +6,12 @@ e.g. for `vtm-playground` can change the [mainClassName](../vtm-playground/build ```groovy ./gradlew :vtm-playground:run -Pargs=/path/to/map ``` + +To create a standalone executable jar, adapt the main class in [build gradle](../vtm-playground/build.gradle), then run: +```groovy +./gradlew :vtm-playground:fatJar +``` +The jar file can be found in `build/libs` folder. Depending on the main class, pass args on execution via command line: +``` +java -jar vtm-playground-master-SNAPSHOT-jar-with-dependencies.jar /path/to/map +```