Adds: scripts to simplifying running the client and server

This commit is contained in:
Tim Emiola 2015-01-25 10:02:30 -08:00
parent 7131c9798d
commit 737ee5848d
2 changed files with 19 additions and 0 deletions

10
run_greetings_client.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash -e
TARGET='Greetings Client'
TARGET_CLASS='ex.grpc.GreetingsClient'
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

9
run_greetings_server.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash -e
TARGET='Greetings Server'
TARGET_CLASS='ex.grpc.GreetingsServer'
cd "$(dirname "$0")"
mvn -q -nsu -am package -Dcheckstyle.skip=true -DskipTests
. target/bootclasspath.properties
echo "[INFO] Running: $TARGET ($TARGET_CLASS)"
exec java "$bootclasspath" -cp "$jar" "$TARGET_CLASS"