2019-04-05 12:04:16 +08:00
|
|
|
@REM The MIT License (MIT)
|
2019-03-15 18:43:42 +08:00
|
|
|
@REM
|
2019-04-05 12:04:16 +08:00
|
|
|
@REM Copyright (c) 2019 不忘初心
|
2019-03-15 18:43:42 +08:00
|
|
|
@REM
|
2019-04-05 12:04:16 +08:00
|
|
|
@REM Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
@REM this software and associated documentation files (the "Software"), to deal in
|
|
|
|
@REM the Software without restriction, including without limitation the rights to
|
|
|
|
@REM use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
|
|
@REM the Software, and to permit persons to whom the Software is furnished to do so,
|
|
|
|
@REM subject to the following conditions:
|
2019-03-15 18:43:42 +08:00
|
|
|
@REM
|
2019-04-05 12:04:16 +08:00
|
|
|
@REM The above copyright notice and this permission notice shall be included in all
|
|
|
|
@REM copies or substantial portions of the Software.
|
|
|
|
@REM
|
|
|
|
@REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
@REM IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
|
@REM FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
|
|
@REM COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
@REM IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
@REM CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
2019-03-15 18:43:42 +08:00
|
|
|
@REM
|
|
|
|
|
2019-03-21 10:12:06 +08:00
|
|
|
@echo off
|
|
|
|
setlocal enabledelayedexpansion
|
2019-03-15 18:43:42 +08:00
|
|
|
|
2019-03-21 10:12:06 +08:00
|
|
|
set Tag=KeepBx-System-JpomApplication1
|
|
|
|
set MainClass=cn.keepbx.jpom.JpomApplication
|
|
|
|
set basePath=%~dp0
|
|
|
|
set Lib=%basePath%lib\
|
|
|
|
set Log=%basePath%run.log
|
|
|
|
set JVM=-server
|
2019-03-26 16:02:38 +08:00
|
|
|
set ARGS=--server.port=2122 --jpom.log=%basePath%log
|
2019-03-15 18:43:42 +08:00
|
|
|
|
2019-03-21 11:21:28 +08:00
|
|
|
set TEMPCLASSPATH=
|
|
|
|
for /f "delims=" %%I in ('dir /B %Lib%') do (set TEMPCLASSPATH=!TEMPCLASSPATH!%Lib%%%I;)
|
2019-03-21 10:12:06 +08:00
|
|
|
@REM echo 启动成功,关闭窗口不影响运行
|
2019-03-21 12:07:57 +08:00
|
|
|
cmd /S /C "javaw %JVM% -classpath %TEMPCLASSPATH%"%JAVA_HOME%"\lib\tools.jar -Dappliction=%Tag% -Dbasedir=%basePath% %MainClass% %ARGS% >> %Log%"
|
2019-03-15 18:43:42 +08:00
|
|
|
|
2019-03-21 10:12:06 +08:00
|
|
|
:end
|