aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/20java-config1
-rw-r--r--config/symlink-tools13
-rw-r--r--src/env12
-rw-r--r--src/run-java-tool11
4 files changed, 37 insertions, 0 deletions
diff --git a/config/20java-config b/config/20java-config
new file mode 100644
index 0000000..2de217a
--- /dev/null
+++ b/config/20java-config
@@ -0,0 +1 @@
+MANPATH=/usr/share/java-config/vms/system-vm/man/
diff --git a/config/symlink-tools b/config/symlink-tools
new file mode 100644
index 0000000..47eabae
--- /dev/null
+++ b/config/symlink-tools
@@ -0,0 +1,13 @@
+appletviewer
+jar
+jarsigner
+java
+javac
+javadoc
+javah
+javap
+javaws
+jdb
+rmic
+rmid
+rmiregistry
diff --git a/src/env b/src/env
new file mode 100644
index 0000000..dc55d48
--- /dev/null
+++ b/src/env
@@ -0,0 +1,12 @@
+#!/bin/bash
+#Too be sourced
+
+if [[ -n ${GENTOO_VM} ]]; then
+ vmpath=/usr/share/java-config/vms/${GENTOO_VM}/
+elif [[ -h ${HOME}/.gentoo/user-vm ]]; then
+ vmpath=${HOME}/.gentoo/user-vm/
+else
+ vmpath=/usr/share/java-config/vms/system-vm/
+fi
+
+source ${vmpath}/env
diff --git a/src/run-java-tool b/src/run-java-tool
new file mode 100644
index 0000000..e2b1668
--- /dev/null
+++ b/src/run-java-tool
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [[ -n ${GENTOO_VM} ]]; then
+ vmpath=/usr/share/java-config/vms/${GENTOO_VM}/
+elif [[ -h ${HOME}/.gentoo/user-vm ]]; then
+ vmpath=${HOME}/.gentoo/user-vm/
+else
+ vmpath=/usr/share/java-config/vms/system-vm/
+fi
+
+exec ${vmpath}/bin/$(basename $0) "${@}"