mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
parent
ffbcbefbfe
commit
af042aa2d1
3 changed files with 4 additions and 3 deletions
|
@ -145,7 +145,7 @@ fi
|
||||||
JAVA_CMD="${JAVA_HOME}/bin/java"
|
JAVA_CMD="${JAVA_HOME}/bin/java"
|
||||||
|
|
||||||
# Get the configurable VM arguments from the launch properties
|
# Get the configurable VM arguments from the launch properties
|
||||||
while IFS= read -r line; do
|
while IFS=$'\r\n' read -r line; do
|
||||||
VMARGS_FROM_LAUNCH_PROPS+=("$line")
|
VMARGS_FROM_LAUNCH_PROPS+=("$line")
|
||||||
done < <(java -cp "${LS_CPATH}" LaunchSupport "${INSTALL_DIR}" -vmargs)
|
done < <(java -cp "${LS_CPATH}" LaunchSupport "${INSTALL_DIR}" -vmargs)
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ if "%JAVA_HOME%" == "" (
|
||||||
set "JAVA_CMD=%JAVA_HOME%\bin\java"
|
set "JAVA_CMD=%JAVA_HOME%\bin\java"
|
||||||
|
|
||||||
:: Get the configurable VM arguments from the launch properties
|
:: Get the configurable VM arguments from the launch properties
|
||||||
for /f "delims=*" %%i in ('java -cp "%LS_CPATH%" LaunchSupport "%INSTALL_DIR%" -vmargs') do set VMARG_LIST=%VMARG_LIST% %%i
|
for /f "delims=*" %%i in ('java -cp "%LS_CPATH%" LaunchSupport "%INSTALL_DIR%" -vmargs') do set VMARG_LIST=!VMARG_LIST! %%i
|
||||||
|
|
||||||
:: Set Max Heap Size if specified
|
:: Set Max Heap Size if specified
|
||||||
if not "%MAXMEM%"=="" (
|
if not "%MAXMEM%"=="" (
|
||||||
|
|
|
@ -291,7 +291,8 @@ public class LaunchSupport {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
javaConfig.getLaunchProperties().getVmArgList().forEach(arg -> System.out.println(arg));
|
// Force newline style to make cross-platform parsing consistent
|
||||||
|
javaConfig.getLaunchProperties().getVmArgList().forEach(e -> System.out.print(e + "\r\n"));
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue