aboutsummaryrefslogtreecommitdiff
path: root/run-test-client.sh
diff options
context:
space:
mode:
authornmittler <nathanmittler@google.com>2015-01-26 14:03:11 -0800
committernmittler <nathanmittler@google.com>2015-01-26 15:26:11 -0800
commit02c953e5e08f39deebe61371fe13962c04bb0174 (patch)
treeddf5a5cd31a544a00bb4238ef2d25bef2a6e042a /run-test-client.sh
parentd54a463871f7ba20d14f3f01e69870739da053b8 (diff)
downloadgrpc-grpc-java-02c953e5e08f39deebe61371fe13962c04bb0174.tar.gz
Migrating run scripts to gradle.
Diffstat (limited to 'run-test-client.sh')
-rwxr-xr-xrun-test-client.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/run-test-client.sh b/run-test-client.sh
index b126dcad2..c897d5e88 100755
--- a/run-test-client.sh
+++ b/run-test-client.sh
@@ -1,10 +1,12 @@
#!/bin/bash -e
TARGET='Test Service Client'
TARGET_CLASS='com.google.net.stubby.testing.integration.TestServiceClient'
-TARGET_ARGS="$@"
-cd "$(dirname "$0")"
-mvn -q -nsu -pl integration-testing -am package -Dcheckstyle.skip=true -DskipTests
-. integration-testing/target/bootclasspath.properties
+TARGET_ARGS=''
+for i in "$@"; do
+ TARGET_ARGS="$TARGET_ARGS, '$i'"
+done
+TARGET_ARGS="${TARGET_ARGS:2}"
+
echo "[INFO] Running: $TARGET ($TARGET_CLASS $TARGET_ARGS)"
-exec java "$bootclasspath" -cp "$jar" "$TARGET_CLASS" $TARGET_ARGS
+gradle -PmainClass="$TARGET_CLASS" -PappArgs="[$TARGET_ARGS]" :stubby-integration-testing:execute