From 6f18b74ac68ee5992e81ed46fc712d8d5d9a5b73 Mon Sep 17 00:00:00 2001 From: Serge Guzik Date: Wed, 13 Feb 2019 13:04:58 +0200 Subject: [PATCH] fix: JVM options passing --- warp4j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warp4j b/warp4j index 5c75dfa..66e598f 100755 --- a/warp4j +++ b/warp4j @@ -286,7 +286,7 @@ DIR="$(cd "$(dirname "$0")" ; pwd -P)" JAVA=$DIR/$JAVA_DIST/bin/java JAR_PATH=$DIR/$JAR -exec $JAVA '$JVM_OPTIONS' -jar $JAR_PATH $@ +exec $JAVA '"$JVM_OPTIONS"' -jar $JAR_PATH $@ ' } @@ -303,7 +303,7 @@ SET "JAR='$JAR_NAME'.jar" SET "JAVA=%~dp0\%JAVA_DIST%\bin\java.exe" SET "JAR_PATH=%~dp0\%JAR%" -CALL %JAVA% '$JVM_OPTIONS' -jar %JAR_PATH% %* +CALL %JAVA% '"$JVM_OPTIONS"' -jar %JAR_PATH% %* EXIT /B %ERRORLEVEL% ' }