summaryrefslogtreecommitdiffstats
path: root/messagebus_test/src/binref/runjava.in
blob: c75e4d5cbc101f6909dfdc0c38c0ca0cd5791bbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
unset VESPA_LOG_TARGET
unset LD_PRELOAD
CLASSPATH=@PROJECT_SOURCE_DIR@/messagebus/target/messagebus-jar-with-dependencies.jar
CLASSPATH=$CLASSPATH:@PROJECT_SOURCE_DIR@/component/target/component.jar
CLASSPATH=$CLASSPATH:.
if [ $# -lt 1 ]; then
  echo "usage: runjava <class> [args]"
  exit 1
fi
CLASS=$1
shift
exec java -cp $CLASSPATH $CLASS "$@"