STS 启动命令行

SpringToolSuite4 runcommand cmd at sts_rc.cmd.


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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
:: sts_rc.cmd
:: SpringToolSuite4 runcommand cmd
@echo off
call :find_dp0

:start
echo --------start
:: goto end

:config
cd /d %dp0%
set ECLIPSE_INSTALL_DIR=R:\runtime-app\sts\_current\
set PLUGIN_INI=%dp0%sts_plugin.ini
set D_USER_HOME=U:\userdata_sts\d_user_home\
set D_INSTANCE_AREA=@user.home/d_osgi_instance_area/
set LOMBOK_JAR=R:\runtime-app\lombok\_current\lombok.jar
set D_JAVA_IO_TMPDIR=%D_USER_HOME%tmpdir\

:init_args
set LAUNCHER_BIN=%ECLIPSE_INSTALL_DIR%SpringToolSuite4.exe
set PLUGIN_INI_ARGS=-pluginCustomization %PLUGIN_INI%
:: set LAUNCHER_INI_ARGS=--launcher.ini %ECLIPSE_INSTALL_DIR%SpringToolSuite4.ini
set APPEND_VM_ARGS= ^
--launcher.appendVmargs ^
-vmargs ^
-Duser.home=%D_USER_HOME% ^
-Dosgi.user.area=@user.home/d_osgi_user_area/ ^
-Dosgi.configuration.area=@user.home/d_configuration/ ^
-Dosgi.instance.area=%D_INSTANCE_AREA% ^
-Dosgi.instance.area.default=@user.home/d_osgi_instance_area_default/ ^
-Dfile.encoding=UTF-8 ^
-Djava.io.tmpdir=%D_JAVA_IO_TMPDIR%
set JAVA_AGENT_ARGS=-javaagent:%LOMBOK_JAR%
:: set LAUNCHER_ARGS=%PLUGIN_INI_ARGS% %LAUNCHER_INI_ARGS% %APPEND_VM_ARGS% %JAVA_AGENT_ARGS%
set LAUNCHER_ARGS=%PLUGIN_INI_ARGS% %APPEND_VM_ARGS% %JAVA_AGENT_ARGS%
:: goto log_info

:run
mkdir %D_JAVA_IO_TMPDIR%
cd /d %ECLIPSE_INSTALL_DIR%
start %LAUNCHER_BIN% %LAUNCHER_ARGS%

:log_info
echo start %LAUNCHER_BIN% %LAUNCHER_ARGS%
goto end

:end
echo --------end
exit /b

:find_dp0
set dp0=%~dp0
exit /b

0%