Copied over new start scripts from ../main

This commit is contained in:
hns 2002-11-28 16:16:26 +00:00
parent a028092e40
commit 0eaa19411d
2 changed files with 84 additions and 111 deletions

View file

@ -1,92 +1,79 @@
@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.
:: Initialize variables rem To add jar files to the classpath, simply place them into the
:: (don't touch this section) rem lib/ext directory of this Helma installation.
set HTTP_PORT=
set XMLRPC_PORT= :: Initialize variables
set AJP13_PORT= :: (don't touch this section)
set RMI_PORT= set JAVA_HOME=
set HOP_HOME= set HOP_HOME=
set JAVA_HOME= set HTTP_PORT=
set OPTIONS= set XMLRPC_PORT=
set AJP13_PORT=
:: Set TCP ports for Helma servers set RMI_PORT=
:: (comment/uncomment to de/activate) set OPTIONS=
set HTTP_PORT=80
set XMLRPC_PORT=8081 :: Set TCP ports for Helma servers
rem set AJP13_PORT=8009 :: (comment/uncomment to de/activate)
rem set RMI_PORT=5050 set HTTP_PORT=8080
rem set XMLRPC_PORT=8081
:: Uncomment to set HOP_HOME rem set AJP13_PORT=8009
rem set HOP_HOME=c:\program files\helma rem set RMI_PORT=5050
:: Uncomment to set JAVA_HOME variable :: Uncomment to set HOP_HOME
rem set JAVA_HOME=c:\program files\java rem set HOP_HOME=c:\program files\helma
:: Uncomment to pass options to the Java virtual machine :: Uncomment to set JAVA_HOME variable
rem set JAVA_OPTIONS=-server -Xmx128m rem set JAVA_HOME=c:\program files\java
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Uncomment to pass options to the Java virtual machine
:::::: No user configuration needed below this line ::::::: rem set JAVA_OPTIONS=-server -Xmx128m
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Setting the script path :::::: No user configuration needed below this line :::::::
set SCRIPT_DIR=%~d0%~p0 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Using JAVA_HOME variable if defined. Otherwise, :: Setting the script path
:: Java executable must be contained in PATH variable set SCRIPT_DIR=%~d0%~p0
if "%JAVA_HOME%"=="" goto default
set JAVACMD=%JAVA_HOME%\bin\java :: Using JAVA_HOME variable if defined. Otherwise,
goto end :: Java executable must be contained in PATH variable
:default if "%JAVA_HOME%"=="" goto default
set JAVACMD=java set JAVACMD=%JAVA_HOME%\bin\java
:end goto end
:default
:: Setting HOP_HOME to script path if undefined set JAVACMD=java
if "%HOP_HOME%"=="" ( :end
set HOP_HOME=%SCRIPT_DIR%
) :: Setting HOP_HOME to script path if undefined
if "%HOP_HOME%"=="" (
:: Setting the classpath set HOP_HOME=%SCRIPT_DIR%
set LIB=%SCRIPT_DIR%lib )
set JARS=%LIB%\helma.jar cd %HOP_HOME%
set JARS=%JARS%;%LIB%\jetty.jar
set JARS=%JARS%;%LIB%\crimson.jar
set JARS=%JARS%;%LIB%\xmlrpc.jar :: Setting Helma server options
set JARS=%JARS%;%LIB%\village.jar if not "%HTTP_PORT%"=="" (
set JARS=%JARS%;%LIB%\servlet.jar echo Starting HTTP server on port %HTTP_PORT%
set JARS=%JARS%;%LIB%\regexp.jar set OPTIONS=%OPTIONS% -w %HTTP_PORT%
set JARS=%JARS%;%LIB%\netcomponents.jar )
set JARS=%JARS%;%LIB%\jimi.jar if not "%XMLRPC_PORT%"=="" (
set JARS=%JARS%;%LIB%\apache-dom.jar echo Starting XML-RPC server on port %XMLRPC_PORT%
set JARS=%JARS%;%LIB%\jdom.jar set OPTIONS=%OPTIONS% -x %XMLRPC_PORT%
set JARS=%JARS%;%LIB%\mail.jar )
set JARS=%JARS%;%LIB%\activation.jar if not "%AJP13_PORT%"=="" (
set JARS=%JARS%;%LIB%\mysql.jar echo Starting AJP13 listener on port %AJP13_PORT%
set JARS=%JARS%;%LIB%\mckoidb.jar set OPTIONS=%OPTIONS% -jk %AJP13_PORT%
)
:: Setting Helma server options if not "%RMI_PORT%"=="" (
if not "%HTTP_PORT%"=="" ( echo Starting RMI server on port %RMI_PORT%
echo Starting HTTP server on port %HTTP_PORT% set OPTIONS=%OPTIONS% -p %RMI_PORT%
set OPTIONS=%OPTIONS% -w %HTTP_PORT% )
) if not "%HOP_HOME%"=="" (
if not "%XMLRPC_PORT%"=="" ( echo Serving applications from %HOP_HOME%
echo Starting XML-RPC server on port %XMLRPC_PORT% set OPTIONS=%OPTIONS% -h "%HOP_HOME%
set OPTIONS=%OPTIONS% -x %XMLRPC_PORT% )
)
if not "%AJP13_PORT%"=="" ( :: Invoking the Java virtual machine
echo Starting AJP13 listener on port %AJP13_PORT% %JAVACMD% %JAVA_OPTIONS% -jar launcher.jar %OPTIONS%
set OPTIONS=%OPTIONS% -jk %AJP13_PORT%
)
if not "%RMI_PORT%"=="" (
echo Starting RMI server on port %RMI_PORT%
set OPTIONS=%OPTIONS% -p %RMI_PORT%
)
if not "%HOP_HOME%"=="" (
echo Serving applications from %HOP_HOME%
set OPTIONS=%OPTIONS% -h %HOP_HOME%
)
:: Invoking the Java virtual machine
%JAVACMD% %JAVA_OPTIONS% -classpath %JARS% helma.main.Server %OPTIONS%

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
@ -13,7 +16,7 @@
# Set TCP ports for Helma servers # Set TCP ports for Helma servers
# (comment/uncomment to de/activate) # (comment/uncomment to de/activate)
HTTP_PORT=8080 HTTP_PORT=8080
XMLRPC_PORT=8081 # XMLRPC_PORT=8081
# AJP13_PORT=8009 # AJP13_PORT=8009
# RMI_PORT=5050 # RMI_PORT=5050
@ -41,23 +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/netcomponents.jar
JARS=$JARS:lib/jimi.jar
JARS=$JARS:lib/apache-dom.jar
JARS=$JARS:lib/jdom.jar
JARS=$JARS:lib/regexp.jar
JARS=$JARS:lib/mail.jar
JARS=$JARS:lib/activation.jar
JARS=$JARS:lib/mysql.jar
JARS=$JARS:lib/mckoidb.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
@ -79,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