rem $Id: //open/dev/farrago/dist/bin/defineFarragoRuntime.bat#6 $
rem Define variables needed by runtime scripts such as farragoServer.bat.
rem This script is meant to be sourced from other scripts, not
rem executed directly.

set MAIN_DIR=%~dp0..

if not exist "%MAIN_DIR%\bin\classpath.bat" goto need_install

call "%MAIN_DIR%\bin\classpath.bat"

set JAVA_ARGS=-Xms256m -Xmx256m -cp %LCP% -Dnet.sf.farrago.home="%MAIN_DIR%" -Djava.util.logging.config.file="%MAIN_DIR%\trace\Trace.properties"

set SQLLINE_JAVA_ARGS=sqlline.SqlLine

set JAVA_EXEC=%JAVA_HOME%\bin\java

set PATH=%PATH%;%MAIN_DIR%\plugin;%MAIN_DIR%\lib\fennel

goto done

:need_install
    echo Error:  "%MAIN_DIR%\install\install.bat" has not been run yet.
    exit /b 1

:done

