You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ch...@apache.org on 2001/05/18 13:20:33 UTC
cvs commit: jakarta-james/src/script run.bat run.sh
charlesb 01/05/18 04:20:33
Added: src/conf avalonTestKeys maildatabase-mysql maildatabase-odbc
maildatabase-sqlserver
src/script run.bat run.sh
Removed: res avalonTestKeys maildatabase-mysql maildatabase-odbc
maildatabase-sqlserver run.bat run.sh
Log:
Move files in res to src/conf or src/script
Revision Changes Path
1.1 jakarta-james/src/conf/avalonTestKeys
<<Binary file>>
1.1 jakarta-james/src/conf/maildatabase-mysql
Index: maildatabase-mysql
===================================================================
# Change the URL and username/password to match your configuration
# This driver is available for free at http://www.worldserver.com/mm.mysql/
# This only requires the JDBC 1.12 compatible driver
jdbcDriver=org.gjt.mm.mysql.Driver
jdbcURL=jdbc:mysql://myhost.domain.com/MyDatabase
jdbcUsername=root
jdbcPassword=mypassword
minconn=1
maxconn=2
1.1 jakarta-james/src/conf/maildatabase-odbc
Index: maildatabase-odbc
===================================================================
# Change the DSN and username/password to match your configuration
jdbcDriver=sun.jdbc.odbc.JdbcOdbcDriver
jdbcURL=jdbc:odbc:MyDSN
jdbcUsername=sa
jdbcPassword=mypassword
minconn=1
maxconn=2
1.1 jakarta-james/src/conf/maildatabase-sqlserver
Index: maildatabase-sqlserver
===================================================================
# A 2 connection limit version of this driver is available
# at http://www.inetsoftware.de and allows direct access
# to MS SQL Server 6.5/7.0/2k and Sybase 11
# This only requires the JDBC 1.22 UNA driver
jdbcDriver=com.inet.tds.TdsDriver
jdbcURL=jdbc:inetdae:myhost.domain.com?database=MyDatabase
jdbcUsername=sa
jdbcPassword=mypassword
minconn=1
maxconn=2
1.1 jakarta-james/src/script/run.bat
Index: run.bat
===================================================================
@echo off
rem
rem Phoenix start script.
rem
rem Author: Peter Donald [donaldp@apache.org]
rem
rem The user may choose to supply parameters to the JVM (such as memory settings)
rem via setting the environment variable PHOENIX_JVM_OPTS
rem
rem
rem Determine if JAVA_HOME is set and if so then use it
rem
if not "%JAVA_HOME%"=="" goto found_java
set PHOENIX_JAVACMD=java
goto file_locate
:found_java
set PHOENIX_JAVACMD=%JAVA_HOME%\bin\java
:file_locate
rem
rem Locate where phoenix is in filesystem
rem
if not "%OS%"=="Windows_NT" goto start
rem %~dp0 is name of current script under NT
set PHOENIX_HOME=%~dp0
rem : operator works similar to make : operator
set PHOENIX_HOME=%PHOENIX_HOME:\bin\=%
:start
if not "%PHOENIX_HOME%" == "" goto phoenix_home
echo.
echo Warning: PHOENIX_HOME environment variable is not set.
echo This needs to be set for Win9x as it's command prompt
echo scripting bites
echo.
goto end
:phoenix_home
rem echo "Home directory: %PHOENIX_HOME%"
rem echo "Home ext directory: %PHOENIX_HOME%\lib"
rem
rem This is needed as some JVM vendors do foolish things
rem like placing jaxp/jaas/xml-parser jars in ext dir
rem thus breaking Phoenix
rem
rem Kicking the tires and lighting the fires!!!
%PHOENIX_JAVACMD% -Djava.ext.dirs=%PHOENIX_HOME%\lib %PHOENIX_JVM_OPTS% -jar %PHOENIX_HOME%\bin\phoenix-loader.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
:end
1.1 jakarta-james/src/script/run.sh
Index: run.sh
===================================================================
#! /bin/sh
#
# Phoenix start script.
#
# Author: Peter Donald <do...@apache.org>
#
# The user may choose to supply parameters to the JVM (such as memory settings)
# via setting the environment variable PHOENIX_JVM_OPTS
#
# Checking for JAVA_HOME is required on *nix due
# to some distributions stupidly including kaffe in /usr/bin
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
exit 1
fi
#
# Locate where phoenix is in filesystem
#
THIS_PROG=`dirname $0`
if [ "$THIS_PROG" = "." ] ; then
THIS_PROG=$PWD
fi
PHOENIX_HOME=$THIS_PROG/..
unset THIS_PROG
# echo "Home directory: $PHOENIX_HOME"
# echo "Home ext directory: $PHOENIX_HOME/lib"
#
# Command to overide JVM ext dir
#
# This is needed as some JVM vendors do foolish things
# like placing jaxp/jaas/xml-parser jars in ext dir
# thus breaking Phoenix
#
JVM_OPTS="-Djava.ext.dirs=$PHOENIX_HOME/lib $PHOENIX_JVM_OPTS"
# Kicking the tires and lighting the fires!!!
$JAVA_HOME/bin/java $JVM_OPTS -jar $PHOENIX_HOME/bin/phoenix-loader.jar $*
---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org