com.github.jlangch.venice.venice.bat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of venice Show documentation
Show all versions of venice Show documentation
Venice, a sandboxed Lisp implemented in Java.
@ECHO OFF
REM ############################################################################
REM # Venice shell #
REM # -------------------------------------------------------------------------#
REM # Starts a Venice shell (REPL), loads 'venice.venice' and runs it. #
REM # #
REM # Layout: #
REM # scripts #
REM # +--libs #
REM # | +-- venice-x.y.z.jar #
REM # | +-- jansi-2.4.1.jar #
REM # +--venice.bat #
REM # +--venice.venice #
REM ############################################################################
set VENICE_SHELL_HOME=C:\Users\juerg\Desktop\scripts
set VENICE_PROJECT_HOME=C:\Users\juerg\Documents\workspace\venice
set VENICE_REPL_HOME=C:\Users\juerg\Desktop\venice
if not exist %VENICE_SHELL_HOME% (
echo Error: The Venice shell home dir %VENICE_SHELL_HOME% does not exist!
pause
exit 2
)
if not exist %VENICE_SHELL_HOME%\libs (
echo Error: The Venice shell libs dir %VENICE_SHELL_HOME%\libs does not exist!
pause
exit 2
)
if not exist %JAVA_8_HOME%\libs (
echo Error: The Java 8 home dir %JAVA_8_HOME% does not exist!
pause
exit 2
)
cd %VENICE_SHELL_HOME%
"%JAVA_8_HOME%\bin\java.exe" ^
-server ^
-Xmx2G ^
-XX:-OmitStackTraceInFastThrow ^
-cp "libs;libs/*" ^
com.github.jlangch.venice.Launcher ^
-Dvenice.repl.home=%VENICE_SHELL_HOME% ^
-colors-darkmode ^
-macroexpand ^
-app-repl venice.venice