Copied over new start scripts from build/main

This commit is contained in:
hns 2002-12-03 13:53:12 +00:00
parent 238c7a43d5
commit 084b1cfe39
2 changed files with 11 additions and 6 deletions

11
hop.sh
View file

@ -1,7 +1,7 @@
#!/bin/sh
# Shell script for starting Helma with a JDK-like virtual machine.
# To add JAR files to the classpath, simply place them into the
# To add JAR files to the classpath, simply place them into the
# lib/ext directory.
# uncomment to set JAVA_HOME variable
@ -32,6 +32,11 @@ else
JAVACMD=java
fi
# Get the Helma installation directory
INSTALL_DIR="${0%/*}"
cd $INSTALL_DIR
INSTALL_DIR=$PWD
# get HOP_HOME variable if it isn't set
if test -z "$HOP_HOME"; then
# try to get HOP_HOME from script file and pwd
@ -64,5 +69,5 @@ if [ "$HOP_HOME" ]; then
SWITCHES="$SWITCHES -h $HOP_HOME"
fi
# Invoking the Java VM
$JAVACMD $JAVA_OPTIONS -jar launcher.jar $SWITCHES
# Invoke the Java VM
$JAVACMD $JAVA_OPTIONS -jar "$INSTALL_DIR/launcher.jar" $SWITCHES