Update start.bat

木子李·De 3 years ago
parent 5bdf7b2f4c
commit 25c68a4a65

@ -1,13 +1,18 @@
@echo off & setlocal enabledelayedexpansion
cd ..\lib
for /f "delims=" %%i in ('dir /a-d /b /on aj-report*.jar') do (
set BOOT_JAR=%%i
)
for %%i in (*) do set LIB_JARS=!LIB_JARS!..\lib\%%i;
cd ..\bin
echo %LIB_JARS%
echo ""
set JAVA_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k "
java $JAVA_OPTS -jar -Dspring.config.location=..\conf\bootstrap.yml ..\lib\aj-report-*.jar -Xbootclasspath/a:%LIB_JARS%
set JAVA_HOME=D:\App\Java\jdk1.8.0_172
set JAVA_OPTS= -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k
pause
%JAVA_HOME%\bin\java %JAVA_OPTS% -jar -Dspring.config.location=..\conf\bootstrap.yml ..\lib\%BOOT_JAR% -Xbootclasspath/a:%LIB_JARS%

Loading…
Cancel
Save