aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/run-java-tool')
-rwxr-xr-xsrc/run-java-tool11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/run-java-tool b/src/run-java-tool
new file mode 100755
index 0000000..3204410
--- /dev/null
+++ b/src/run-java-tool
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [[ -n ${GENTOO_VM} ]]; then
+ execme=/usr/share/java-config/vms/${GENTOO_VM}/
+elif [[ -d ${HOME}/.gentoo/user-vm ]]; then
+ execme=${HOME}/.gentoo/user-vm/
+else
+ execme=/usr/share/java-config/vms/system-vm/
+fi
+
+exec ${execme}/bin/$(basename $0) "${@}"