aboutsummaryrefslogtreecommitdiffhomepage
path: root/java/run_greeter_client.sh
diff options
context:
space:
mode:
Diffstat (limited to 'java/run_greeter_client.sh')
-rwxr-xr-xjava/run_greeter_client.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/run_greeter_client.sh b/java/run_greeter_client.sh
new file mode 100755
index 0000000000..e86ab4ae89
--- /dev/null
+++ b/java/run_greeter_client.sh
@@ -0,0 +1,10 @@
+#!/bin/bash -e
+TARGET='Greeter Client'
+TARGET_CLASS='ex.grpc.GreeterClient'
+TARGET_ARGS="$@"
+
+cd "$(dirname "$0")"
+mvn -q -nsu -am package -Dcheckstyle.skip=true -DskipTests
+. target/bootclasspath.properties
+echo "[INFO] Running: $TARGET ($TARGET_CLASS $TARGET_ARGS)"
+exec java "$bootclasspath" -cp "$jar" "$TARGET_CLASS" $TARGET_ARGS