blob: 205d869f2325d834c2754aa9cd1aa8cdf66cd94c (
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[@]}"
|