File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,10 @@ if "%_PROG_NAME%"=="%_SCRIPTING_MAIN%" (
39
39
if defined JAVA_OPTS ( set _JAVA_OPTS = %JAVA_OPTS%
40
40
) else ( set _JAVA_OPTS = %_DEFAULT_JAVA_OPTS%
41
41
)
42
+ for %%i in (" %_PROG_HOME% \.." ) do set " _SCALA_HOME = %%~fi "
43
+
42
44
call " %_JAVACMD% " %_JAVA_OPTS% %_JAVA_DEBUG% %_JAVA_ARGS% %_JVM_CP_ARGS% ^
43
- -Dscala.usejavacp=true ^
45
+ -Dscala.home= " %_SCALA_HOME% " -Dscala. usejavacp=true ^
44
46
%_PROG_NAME% %_SCALA_ARGS% %_RESIDUAL_ARGS% %_SCRIPTING_STRING%
45
47
if not %ERRORLEVEL% == 0 (
46
48
set _EXITCODE = 1
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ goto :eof
149
149
@ rem output parameter: _CLASS_PATH
150
150
:updateClasspath
151
151
set " __PATTERN = %~1 "
152
- for /f %%f in ('dir /a-d /b " %_LIB_DIR% \*%__PATTERN% *" ') do (
152
+ for /f " delims= " %%f in ('dir /a-d /b " %_LIB_DIR% \*%__PATTERN% *" ') do (
153
153
set " _CLASS_PATH = !_CLASS_PATH!%_LIB_DIR% \%%f %_PSEP% "
154
154
)
155
155
goto :eof
You can’t perform that action at this time.
0 commit comments