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:
Eugene Yokota 2018-01-08 09:08:12 -05:00
parent a8b7b5a060
commit 3b39ff0554
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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"