mirror of https://github.com/sbt/sbt.git
Use more delayed expansion
Fixes #206 When I use unzipped sbt.bat it seems to runs ok, but using the msi installer version, this variable seems to expand and causes: ``` \sbt\bin\java9-rt-export.jar was unexpected at this time. ```
This commit is contained in:
parent
a8b7b5a060
commit
3b39ff0554
|
|
@ -7,6 +7,8 @@ unzip ..\target\universal\sbt.zip -d freshly-baked
|
|||
|
||||
SETLOCAL
|
||||
|
||||
"freshly-baked\sbt\bin\sbt" about
|
||||
|
||||
SET JAVA_HOME=C:\jdk9
|
||||
SET PATH=C:\jdk9\bin;%PATH%
|
||||
SET SBT_OPTS=-Xmx4g -Dfile.encoding=UTF8
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ exit /B 1
|
|||
|
||||
:copyrt
|
||||
if /I "%JAVA_VERSION%" GEQ "9" (
|
||||
set rtexport=%SBT_HOME%java9-rt-export.jar
|
||||
set rtexport=!SBT_HOME!java9-rt-export.jar
|
||||
|
||||
"%_JAVACMD%" %_JAVA_OPTS% %SBT_OPTS% -jar "!rtexport!" --rt-ext-dir > "%TEMP%.\rtext.txt"
|
||||
set /p java9_ext= < "%TEMP%.\rtext.txt"
|
||||
|
|
|
|||
Loading…
Reference in New Issue