mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05:38 +02:00
Support dbl click startup of server.bat
This commit is contained in:
parent
b5d31337af
commit
0f52e211a0
2 changed files with 43 additions and 5 deletions
|
@ -1,4 +1,18 @@
|
|||
@ECHO OFF
|
||||
REM
|
||||
REM Start an RSE Windows Daemon
|
||||
REM Usage: daemon.bat [<port> | <low port>-<high port>] [ <low server port>-<high server port>]
|
||||
REM
|
||||
SET DaemonPort=4035
|
||||
SET ServerPortRange=
|
||||
IF NOT "%1"=="" SET DaemonPort=%1
|
||||
IF NOT "%2"=="" SET ServerPortRange=%2
|
||||
|
||||
if "%1" == "?" goto usage
|
||||
if "%1" == "/h" goto usage
|
||||
if "%1" == "help" goto usage
|
||||
if "%1" == "/help" goto usage
|
||||
|
||||
IF NOT "%A_PLUGIN_PATH%"=="" GOTO DoneSetup
|
||||
IF EXIST setup.bat GOTO HaveSetup
|
||||
ECHO.
|
||||
|
@ -8,5 +22,11 @@ GOTO Done
|
|||
:HaveSetup
|
||||
CALL setup.bat
|
||||
:DoneSetup
|
||||
java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% org.eclipse.dstore.core.server.ServerLauncher
|
||||
java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% org.eclipse.dstore.core.server.ServerLauncher %DaemonPort% %ServerPortRange%
|
||||
GOTO Done
|
||||
|
||||
:usage
|
||||
@echo Usage: daemon.bat [^<port^> ^| ^<low port^>-^<high port^>] [ ^<low server port^>-^<high server port^>]
|
||||
pause
|
||||
|
||||
:Done
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
echo off
|
||||
@echo off
|
||||
REM
|
||||
REM Start an RSE Windows Server
|
||||
REM Usage: server.bat [<port>] [<timeout>] [<clientUserID>]
|
||||
REM
|
||||
|
||||
setlocal
|
||||
|
||||
|
@ -6,12 +10,25 @@ set PORT=%1
|
|||
set TIMEOUT=%2
|
||||
set TICKET=%3
|
||||
|
||||
if "%1" == "?" goto usage
|
||||
if "%1" == "/h" goto usage
|
||||
if "%1" == "help" goto usage
|
||||
if "%1" == "/help" goto usage
|
||||
if xxx%1 == xxx set PORT=4033
|
||||
if xxx%2 == xxx set TIMEOUT=120000
|
||||
|
||||
IF NOT "%A_PLUGIN_PATH%"=="" GOTO doneSetup
|
||||
IF EXIST setup.bat GOTO HaveSetup
|
||||
ECHO.
|
||||
ECHO Please run setup.bat before running server.bat
|
||||
PAUSE
|
||||
GOTO done
|
||||
:HaveSetup
|
||||
CALL setup.bat
|
||||
|
||||
:doneSetup
|
||||
if xxx%3 == xxx goto runNoTicket
|
||||
|
||||
@echo on
|
||||
|
||||
java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server %PORT% %TIMEOUT% %TICKET%
|
||||
goto done
|
||||
|
||||
|
@ -21,7 +38,8 @@ java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.
|
|||
goto done
|
||||
|
||||
:usage
|
||||
@echo Usage: run.win ^<port^> ^<timeout^>
|
||||
@echo Usage: server.bat ^<port^> ^<timeout^>
|
||||
pause
|
||||
|
||||
:done
|
||||
endlocal
|
Loading…
Add table
Reference in a new issue