mirror of https://github.com/sbt/sbt.git
Fix debug options breaking launcher on Windows
Filter rt-ext-dir output for java9-rt-ext- pattern, matching the Unix script behavior. This prevents debug agent stdout (e.g., 'Listening for transport dt_socket at address: 1234') from being incorrectly parsed as a file path. Fixes #8100
This commit is contained in:
parent
7e59872d31
commit
17f03201d3
|
|
@ -980,7 +980,9 @@ exit /B 1
|
|||
:copyrt
|
||||
if /I !JAVA_VERSION! GEQ 9 (
|
||||
"!_JAVACMD!" !_JAVA_OPTS! !_SBT_OPTS! -jar "!sbt_jar!" --rt-ext-dir > "%TEMP%.\rtext.txt"
|
||||
set /p java9_ext= < "%TEMP%.\rtext.txt"
|
||||
rem Filter for the line containing java9-rt-ext- to avoid picking up debug agent output
|
||||
set "java9_ext="
|
||||
for /f "tokens=*" %%a in ('findstr /c:"java9-rt-ext-" "%TEMP%.\rtext.txt"') do set "java9_ext=%%a"
|
||||
set "java9_rt=!java9_ext!\rt.jar"
|
||||
|
||||
if not exist "!java9_rt!" (
|
||||
|
|
|
|||
Loading…
Reference in New Issue