Desktop.md: instructions to run standalone jar (#613)

This commit is contained in:
Gustl22
2018-12-08 00:53:45 +01:00
committed by Emux
parent 01958b7d34
commit 576d5f741d

View File

@@ -6,3 +6,12 @@ e.g. for `vtm-playground` can change the [mainClassName](../vtm-playground/build
```groovy ```groovy
./gradlew :vtm-playground:run -Pargs=/path/to/map ./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
```