Update start.bat
parent
5bdf7b2f4c
commit
25c68a4a65
@ -1,13 +1,18 @@
|
|||||||
@echo off & setlocal enabledelayedexpansion
|
@echo off & setlocal enabledelayedexpansion
|
||||||
|
|
||||||
cd ..\lib
|
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;
|
for %%i in (*) do set LIB_JARS=!LIB_JARS!..\lib\%%i;
|
||||||
cd ..\bin
|
cd ..\bin
|
||||||
|
|
||||||
echo %LIB_JARS%
|
echo %LIB_JARS%
|
||||||
|
echo ""
|
||||||
|
|
||||||
set JAVA_OPTS=" -server -Xmx2g -Xms2g -Xmn256m -XX:PermSize=128m -Xss256k "
|
set JAVA_HOME=D:\App\Java\jdk1.8.0_172
|
||||||
|
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%
|
|
||||||
|
|
||||||
pause
|
%JAVA_HOME%\bin\java %JAVA_OPTS% -jar -Dspring.config.location=..\conf\bootstrap.yml ..\lib\%BOOT_JAR% -Xbootclasspath/a:%LIB_JARS%
|
||||||
|
Loading…
Reference in New Issue