Copied over new start scripts from build/main

This commit is contained in:
hns 2002-11-28 16:20:46 +00:00
parent 0eaa19411d
commit a0dad78958
2 changed files with 83 additions and 108 deletions

28
hop.bat
View file

@ -1,14 +1,17 @@
@echo off @echo off
rem Batch file for Starting Helma with a JDK-like virtual machine. rem Batch file for Starting Helma with a JDK-like virtual machine.
rem To add jar files to the classpath, simply place them into the
rem lib/ext directory of this Helma installation.
:: Initialize variables :: Initialize variables
:: (don't touch this section) :: (don't touch this section)
set JAVA_HOME=
set HOP_HOME=
set HTTP_PORT= set HTTP_PORT=
set XMLRPC_PORT= set XMLRPC_PORT=
set AJP13_PORT= set AJP13_PORT=
set RMI_PORT= set RMI_PORT=
set HOP_HOME=
set JAVA_HOME=
set OPTIONS= set OPTIONS=
:: Set TCP ports for Helma servers :: Set TCP ports for Helma servers
@ -47,23 +50,8 @@ if "%JAVA_HOME%"=="" goto default
if "%HOP_HOME%"=="" ( if "%HOP_HOME%"=="" (
set HOP_HOME=%SCRIPT_DIR% set HOP_HOME=%SCRIPT_DIR%
) )
cd %HOP_HOME%
:: Setting the classpath
set LIB=%SCRIPT_DIR%lib
set JARS=%LIB%\helma.jar
set JARS=%JARS%;%LIB%\jetty.jar
set JARS=%JARS%;%LIB%\crimson.jar
set JARS=%JARS%;%LIB%\xmlrpc.jar
set JARS=%JARS%;%LIB%\village.jar
set JARS=%JARS%;%LIB%\servlet.jar
set JARS=%JARS%;%LIB%\regexp.jar
set JARS=%JARS%;%LIB%\netcomponents.jar
set JARS=%JARS%;%LIB%\jimi.jar
set JARS=%JARS%;%LIB%\apache-dom.jar
set JARS=%JARS%;%LIB%\jdom.jar
set JARS=%JARS%;%LIB%\mail.jar
set JARS=%JARS%;%LIB%\activation.jar
set JARS=%JARS%;%LIB%\mysql.jar
:: Setting Helma server options :: Setting Helma server options
if not "%HTTP_PORT%"=="" ( if not "%HTTP_PORT%"=="" (
@ -84,8 +72,8 @@ if not "%RMI_PORT%"=="" (
) )
if not "%HOP_HOME%"=="" ( if not "%HOP_HOME%"=="" (
echo Serving applications from %HOP_HOME% echo Serving applications from %HOP_HOME%
set OPTIONS=%OPTIONS% -h %HOP_HOME% set OPTIONS=%OPTIONS% -h "%HOP_HOME%
) )
:: Invoking the Java virtual machine :: Invoking the Java virtual machine
%JAVACMD% %JAVA_OPTIONS% -classpath %JARS% helma.main.Server %OPTIONS% %JAVACMD% %JAVA_OPTIONS% -jar launcher.jar %OPTIONS%

21
hop.sh
View file

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
# Shell script for starting Helma with a JDK-like virtual machine. # Shell script for starting Helma with a JDK-like virtual machine.
# To add JAR files to the classpath, simply place them into the
# lib/ext directory.
# uncomment to set JAVA_HOME variable # uncomment to set JAVA_HOME variable
# JAVA_HOME=/usr/lib/java # JAVA_HOME=/usr/lib/java
@ -41,22 +44,6 @@ else
fi fi
echo "Starting Helma in directory $HOP_HOME" echo "Starting Helma in directory $HOP_HOME"
# Set classpath
JARS=lib/helma.jar
JARS=$JARS:lib/jetty.jar
JARS=$JARS:lib/crimson.jar
JARS=$JARS:lib/xmlrpc.jar
JARS=$JARS:lib/village.jar
JARS=$JARS:lib/servlet.jar
JARS=$JARS:lib/regexp.jar
JARS=$JARS:lib/mail.jar
JARS=$JARS:lib/activation.jar
JARS=$JARS:lib/netcomponents.jar
JARS=$JARS:lib/jimi.jar
JARS=$JARS:lib/apache-dom.jar
JARS=$JARS:lib/jdom.jar
JARS=$JARS:lib/mysql.jar
if [ "$HTTP_PORT" ]; then if [ "$HTTP_PORT" ]; then
SWITCHES="$SWITCHES -w $HTTP_PORT" SWITCHES="$SWITCHES -w $HTTP_PORT"
echo Starting HTTP server on port $HTTP_PORT echo Starting HTTP server on port $HTTP_PORT
@ -78,4 +65,4 @@ if [ "$HOP_HOME" ]; then
fi fi
# Invoking the Java VM # Invoking the Java VM
$JAVACMD $JAVA_OPTIONS -classpath $CLASSPATH:$JARS helma.main.Server $SWITCHES $JAVACMD $JAVA_OPTIONS -jar launcher.jar $SWITCHES