File: run-java-test

package info (click to toggle)
xapian-bindings 1.4.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,436 kB
  • sloc: cpp: 379,853; python: 10,780; cs: 9,529; java: 6,949; sh: 4,629; perl: 4,435; makefile: 1,274; ruby: 1,028; php: 586; tcl: 246
file content (9 lines) | stat: -rwxr-xr-x 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/sh
# To run `jdb` instead of `java` set JAVA=jdb
# To run under gdb, set JAVA='gdb --args java'
set -e
arg=`echo "$1"|sed 's!.*/!!;s!\.class$!!'`
# Use libtool's -dlopen option to ensure that libxapian_jni.so (or whatever)
# is in the shared library path.
${LIBTOOL-../libtool} -dlopen libxapian_jni.la --mode=execute \
  $MACOS_SIP_HACK_ENV ${JAVA-java} -Djava.library.path="${_libs-.libs}" -classpath built/xapian.jar${PATHSEP-:}. "$arg"