2023-12-30 00:47:31 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-01-01 16:20:30 +00:00
|
|
|
# A helper script to (optionally) build and run a JAR packaged version of Perfin.
|
|
|
|
# Provide the "build" argument to rebuild the project before running it.
|
|
|
|
|
2023-12-30 00:47:31 +00:00
|
|
|
shouldBuild=0
|
|
|
|
for i in "$@" ; do
|
|
|
|
if [[ $i == "build" ]] ; then
|
|
|
|
shouldBuild=1
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ $shouldBuild == 1 ]; then
|
2024-01-02 13:39:07 +00:00
|
|
|
./mvnw clean package
|
2023-12-30 00:47:31 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
java \
|
|
|
|
--add-modules=javafx.controls,com.andrewlalis.javafx_scene_router \
|
|
|
|
--module-path=target/lib/ \
|
|
|
|
-jar target/perfin-*-jar-with-dependencies.jar
|