File tree 3 files changed +10
-0
lines changed 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ call :args %*
21
21
22
22
call :compilerJavaClasspathArgs
23
23
24
+ @ rem we need to escape % in the java command path, for some reason this doesnt work in common.bat
25
+ set " _JAVACMD = !_JAVACMD:%% =%%%% ! "
26
+
24
27
call " %_JAVACMD% " %_JAVA_ARGS% " -Dscala.home=%_PROG_HOME% " -classpath " %_JVM_CP_ARGS% " dotty.tools.MainGenericRunner -classpath " %_JVM_CP_ARGS% " %_SCALA_ARGS%
25
28
if not %ERRORLEVEL% == 0 ( set _EXITCODE = 1& goto end )
26
29
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ call :args %*
21
21
22
22
call :compilerJavaClasspathArgs
23
23
24
+ @ rem we need to escape % in the java command path, for some reason this doesnt work in common.bat
25
+ set " _JAVACMD = !_JAVACMD:%% =%%%% ! "
26
+
24
27
call " %_JAVACMD% " %_JAVA_ARGS% -classpath " %_JVM_CP_ARGS% " " -Dscala.usejavacp=true" " -Dscala.home=%_PROG_HOME% " dotty.tools.MainGenericCompiler %_SCALA_ARGS%
25
28
if not %ERRORLEVEL% == 0 (
26
29
set _EXITCODE = 1
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ call :classpathArgs
26
26
if defined JAVA_OPTS ( set _JAVA_OPTS = %JAVA_OPTS%
27
27
) else ( set _JAVA_OPTS = %_DEFAULT_JAVA_OPTS%
28
28
)
29
+
30
+ @ rem we need to escape % in the java command path, for some reason this doesnt work in common.bat
31
+ set " _JAVACMD = !_JAVACMD:%% =%%%% ! "
32
+
29
33
call " %_JAVACMD% " %_JAVA_OPTS% %_JAVA_DEBUG% %_JAVA_ARGS% ^
30
34
-classpath " %_CLASS_PATH% " ^
31
35
-Dscala.usejavacp=true ^
You can’t perform that action at this time.
0 commit comments