forked from spring/SpringLS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runServer.bat
37 lines (32 loc) · 1021 Bytes
/
runServer.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@ECHO OFF
REM
REM How To:
REM All these actions require that you ran 'mvn package' successfully.
REM
REM * start server (LAN mode):
REM > runServer.bat
REM
REM * start server (normal mode, using a database):
REM > runServer.bat --database
REM
REM * start server (debug mode):
REM > SET DBG_PORT=7333
REM > runServer.bat
REM
REM * stop server:
REM press [Ctrl]+[C]
REM
SET MY_MAIN_CLASS_main=com.springrts.springls.Main
SET MY_MAIN_CLASS_accountUtils=com.springrts.springls.accounts.AccountUtils
SET MY_MAIN_CLASS=%MY_MAIN_CLASS_main%
SET MY_ECHO=Starting the server, using all dependencies
SET MY_JAVA_ARGS=-cp "conf;target\*;target\dependency\*" %MY_MAIN_CLASS% %1 %2 %3 %4 %5 %6 %7 %8 %9
SET MY_OPTIONAL_OPTS=
IF {%DBG_PORT%}!={} (
SET MY_DEBUG_OPTS=-Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=%DBG_PORT% -Djava.compiler=NONE -Xnoagent
) ELSE (
SET MY_DEBUG_OPTS=
)
SET MY_OPTIONAL_OPTS=%MY_OPTIONAL_OPTS% %MY_DEBUG_OPTS%
ECHO %MY_ECHO%
java %MY_OPTIONAL_OPTS% %MY_JAVA_ARGS%