summaryrefslogtreecommitdiff
path: root/dummy/virtual-machine/java-vm
diff options
context:
space:
mode:
Diffstat (limited to 'dummy/virtual-machine/java-vm')
-rw-r--r--dummy/virtual-machine/java-vm53
1 files changed, 0 insertions, 53 deletions
diff --git a/dummy/virtual-machine/java-vm b/dummy/virtual-machine/java-vm
deleted file mode 100644
index c6cf344..0000000
--- a/dummy/virtual-machine/java-vm
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-
-repository=/usr/share/java/repository
-conf=/etc/java/java-vm.conf
-
-java=`head -1 $conf`
-
-if [ ! -n "$java" ]
-then
- echo "Cannot find a Java virtual machine in $conf"
- exit 1
-fi
-
-defclasspath=`head -2 $conf | tail -1`
-
-if [ -n "$defclasspath" ]
-then
- MYCLASSPATH=${defclasspath}
-fi
-
-compliant=`head -3 $conf | tail -1`
-
-if [ "xx$compliant" != "xxCOMPLIANT" ]
-then
- if [ -n "$MYCLASSPATH" ]
- then
- MYCLASSPATH=${MYCLASSPATH}:$repository
- else
- MYCLASSPATH=$repository
- fi
-fi
-
-if [ -n "$CLASSPATH" ]
-then
- if [ -n "$MYCLASSPATH" ]
- then
- MYCLASSPATH=${MYCLASSPATH}:${CLASSPATH}
- else
- MYCLASSPATH=${CLASSPATH}
- fi
-fi
-
-if [ -n "$MYCLASSPATH" ]
-then
- CLASSPATH=$MYCLASSPATH
- export CLASSPATH
- #echo $CLASSPATH
-fi
-
-exec "$java" "$@"
-
-echo "Cannot run $java (found in $conf)"
-exit 1