aboutsummaryrefslogtreecommitdiff
path: root/run-test-server.sh
diff options
context:
space:
mode:
authorejona <ejona@google.com>2014-12-09 18:03:24 -0800
committerEric Anderson <ejona@google.com>2015-01-08 14:43:18 -0800
commit42989a83fff7f3e3212febb83a15feb37c6b13ac (patch)
tree7df852d65d27df957182fd1e67c9b42d6d627ee7 /run-test-server.sh
parentfc30031fd1e3b304b1354732b356fca30eb09b01 (diff)
downloadgrpc-grpc-java-42989a83fff7f3e3212febb83a15feb37c6b13ac.tar.gz
Allow killing test server/client
mvn exec:exec doesn't kill the child process when Maven is killed. Now we just run ourselves, but have Maven do as much heavy lifting as able. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81736090
Diffstat (limited to 'run-test-server.sh')
-rwxr-xr-xrun-test-server.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/run-test-server.sh b/run-test-server.sh
index da14129eb..325c1d577 100755
--- a/run-test-server.sh
+++ b/run-test-server.sh
@@ -3,6 +3,8 @@ TARGET='Test Service Server'
TARGET_CLASS='com.google.net.stubby.testing.integration.TestServiceServer'
TARGET_ARGS="$@"
-cd "`dirname "$0"`"/integration-testing
+cd "$(dirname "$0")"
+mvn -q -nsu -pl integration-testing -am package -Dcheckstyle.skip=true -DskipTests
+. integration-testing/target/bootclasspath.properties
echo "[INFO] Running: $TARGET ($TARGET_CLASS $TARGET_ARGS)"
-exec mvn -q -nsu compile exec:exec -Dcheckstyle.skip=true -DexampleClass="$TARGET_CLASS" -DargLine.example="$TARGET_ARGS" \ No newline at end of file
+exec java "$bootclasspath" -cp "$jar" "$TARGET_CLASS" $TARGET_ARGS