Adds: scripts to simplifying running the client and server
This commit is contained in:
parent
7131c9798d
commit
737ee5848d
|
|
@ -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
|
||||||
|
|
@ -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"
|
||||||
Loading…
Reference in New Issue