mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-08 21:47:59 -05:00
GP-6193: Environment variables can now be set in launch.properties using ENVVARS= or ENVVARS_[PLATFORM]=
This commit is contained in:
@@ -168,6 +168,16 @@ if "%LS_JAVA_HOME%" == "" (
|
||||
)
|
||||
set "JAVA_CMD=%LS_JAVA_HOME%\bin\java"
|
||||
|
||||
:: Get the configurable environment variables from the launch properties
|
||||
:: Only set them if they are currently undefined
|
||||
for /f "delims=*" %%i in ('call "%JAVA_CMD%" -cp "%LS_CPATH%" LaunchSupport "%INSTALL_DIR%" -envvars') do (
|
||||
for /f "tokens=1* delims==" %%a in ("%%i") do (
|
||||
if not defined %%a (
|
||||
set %%a=%%b
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
:: Get the configurable VM arguments from the launch properties
|
||||
for /f "delims=*" %%i in ('call "%JAVA_CMD%" -cp "%LS_CPATH%" LaunchSupport "%INSTALL_DIR%" -vmargs') do set VMARG_LIST=!VMARG_LIST! %%i
|
||||
|
||||
|
||||
Reference in New Issue
Block a user