diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /lowercasing_test/src/binref |
Publish
Diffstat (limited to 'lowercasing_test/src/binref')
-rw-r--r-- | lowercasing_test/src/binref/.gitignore | 5 | ||||
-rw-r--r-- | lowercasing_test/src/binref/CMakeLists.txt | 5 | ||||
-rwxr-xr-x | lowercasing_test/src/binref/compilejava.in | 11 | ||||
-rw-r--r-- | lowercasing_test/src/binref/env.sh.in | 4 | ||||
l--------- | lowercasing_test/src/binref/progctl.sh | 1 | ||||
-rwxr-xr-x | lowercasing_test/src/binref/runjava.in | 13 | ||||
l--------- | lowercasing_test/src/binref/testrun.sh | 1 |
7 files changed, 40 insertions, 0 deletions
diff --git a/lowercasing_test/src/binref/.gitignore b/lowercasing_test/src/binref/.gitignore new file mode 100644 index 00000000000..c1b83610972 --- /dev/null +++ b/lowercasing_test/src/binref/.gitignore @@ -0,0 +1,5 @@ +.depend +Makefile +compilejava +env.sh +runjava diff --git a/lowercasing_test/src/binref/CMakeLists.txt b/lowercasing_test/src/binref/CMakeLists.txt new file mode 100644 index 00000000000..20594f98d02 --- /dev/null +++ b/lowercasing_test/src/binref/CMakeLists.txt @@ -0,0 +1,5 @@ +# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +configure_file(compilejava.in compilejava @ONLY) +configure_file(runjava.in runjava @ONLY) +configure_file(env.sh.in env.sh @ONLY) diff --git a/lowercasing_test/src/binref/compilejava.in b/lowercasing_test/src/binref/compilejava.in new file mode 100755 index 00000000000..c619b2ebd12 --- /dev/null +++ b/lowercasing_test/src/binref/compilejava.in @@ -0,0 +1,11 @@ +#!/bin/sh +unset VESPA_LOG_TARGET +CLASSPATH=$CLASSPATH:@PROJECT_SOURCE_DIR@/linguistics/target/linguistics.jar +CLASSPATH=$CLASSPATH:@PROJECT_SOURCE_DIR@/vespajlib/target/vespajlib.jar +CLASSPATH=$CLASSPATH:@CMAKE_CURRENT_SOURCE_DIR@/../java/lowercasing_test.jar +CLASSPATH=$CLASSPATH:. +if [ $# -lt 1 ]; then + echo "usage: compilejava file ..." + exit 1 +fi +exec javac -classpath $CLASSPATH "$@" diff --git a/lowercasing_test/src/binref/env.sh.in b/lowercasing_test/src/binref/env.sh.in new file mode 100644 index 00000000000..6a0770c5f9b --- /dev/null +++ b/lowercasing_test/src/binref/env.sh.in @@ -0,0 +1,4 @@ +BINREF=@CMAKE_CURRENT_BINARY_DIR@ +export BINREF +HELLO_WORLD_APP=$BINREF/../grouping_test/hello-world/lowercasing_test_hello-world_app +export HELLO_WORLD_APP diff --git a/lowercasing_test/src/binref/progctl.sh b/lowercasing_test/src/binref/progctl.sh new file mode 120000 index 00000000000..2c1fb1d47ce --- /dev/null +++ b/lowercasing_test/src/binref/progctl.sh @@ -0,0 +1 @@ +../../../vespalib/src/vespa/vespalib/testkit/progctl.sh
\ No newline at end of file diff --git a/lowercasing_test/src/binref/runjava.in b/lowercasing_test/src/binref/runjava.in new file mode 100755 index 00000000000..f8a8644808a --- /dev/null +++ b/lowercasing_test/src/binref/runjava.in @@ -0,0 +1,13 @@ +#!/bin/sh +unset VESPA_LOG_TARGET +CLASSPATH=$CLASSPATH:@PROJECT_SOURCE_DIR@/linguistics/target/linguistics.jar +CLASSPATH=$CLASSPATH:@PROJECT_SOURCE_DIR@/vespajlib/target/vespajlib.jar +CLASSPATH=$CLASSPATH:@CMAKE_CURRENT_SOURCE_DIR@/../java/lowercasing_test.jar +CLASSPATH=$CLASSPATH:. +if [ $# -lt 1 ]; then + echo "usage: runjava <class> [args]" + exit 1 +fi +CLASS=$1 +shift +exec java -cp $CLASSPATH $CLASS "$@" diff --git a/lowercasing_test/src/binref/testrun.sh b/lowercasing_test/src/binref/testrun.sh new file mode 120000 index 00000000000..56c3c1186d8 --- /dev/null +++ b/lowercasing_test/src/binref/testrun.sh @@ -0,0 +1 @@ +../../../vespalib/src/vespa/vespalib/testkit/testrun.sh
\ No newline at end of file |