aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus_test/src/binref/compilejava.in
blob: d0c2a9cfcee28e942b001eebea27fce862868380 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
unset VESPA_LOG_TARGET

if [ -n "$VESPA_CPP_TEST_JARS" ]; then
  CLASSPATH=$VESPA_CPP_TEST_JARS/messagebus-jar-with-dependencies.jar
  CLASSPATH=$CLASSPATH:$VESPA_CPP_TEST_JARS/component.jar
else
  CLASSPATH=@PROJECT_SOURCE_DIR@/messagebus/target/messagebus-jar-with-dependencies.jar
  CLASSPATH=$CLASSPATH:@PROJECT_SOURCE_DIR@/component/target/component.jar
fi
 
CLASSPATH=$CLASSPATH:.

if [ $# -lt 1 ]; then
  echo "usage: compilejava file ..."
  exit 1
fi
exec javac -d . -classpath $CLASSPATH "$@"