blob: 24947d52372505460ef08304848d46c1ef2e2725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
#
# run_java_test
# Morgan Deters, September 2011
#
# The purpose of this script is to change an automake test command
# line into something that a JVM likes. In particular, any dir/Foo.class
# listed on the command line is stripped of its dir/ and its .class extension.
# Works only for tests in the default package.
#
args=("$@")
args[$((${#args}))]="$(echo "${args[${#args}]}" | sed 's,\(.*/\)*\(.*\)\.class$,\2,')"
echo "${args[@]}"
exec "${args[@]}"
|