summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrun26
1 files changed, 15 insertions, 11 deletions
diff --git a/run b/run
index 70e8d91..f346cd3 100755
--- a/run
+++ b/run
@@ -1,14 +1,18 @@
#! /bin/bash
[ -d out ] && rm -fr out
-if [ $# -gt 0 ]; then
- if [ "$1" = "c" ]; then
- ./gradlew clean packs desktop:run
- elif [ "$1" = "a" ]; then
- ./gradlew android:installDebug android:run
- else
- ./gradlew desktop:run
- fi
-else
- ./gradlew desktop:run
-fi
+ARGS="desktop:run"
+
+case "$1" in
+ "c")
+ ARGS="packs $ARGS"
+ ;;
+ "a")
+ ARGS="android:installDebug android:run"
+ ;;
+ "t")
+ ARGS="core:test"
+ ;;
+esac
+
+echo "./gradlew $ARGS" && ./gradlew $ARGS