summarylogtreecommitdiffstats
path: root/invoke_rapidwright
blob: f4ad38304b30c53fab9625209f24325f19608b7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -eu

[[ "$#" -ne 0 ]] || { echo "Usage: $0 <class entry point> <arguments to entry point ...>" >&2; exit 1; }

CP=

for jar in /usr/share/java/rapidwright/*.jar; do
	CP=$CP:$jar
done

CP=$CP:/opt/jython/jython.jar
export RAPIDWRIGHT_PATH=/usr/share/rapidwright

exec java -cp "$CP" "$@"