Skip to content

Commit 4b5a2bb

Browse files
committed
added missing classpath option
1 parent b1af46c commit 4b5a2bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

project/scripts/cmdTests.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if not defined __COMMON__ (
2727
rem ##########################################################################
2828
rem ## Main
2929

30+
rem # check that `sbt dotc` compiles and `sbt dotr` runs it
3031
echo testing sbt dotc and dotr
3132
if %_DEBUG%==1 echo [%_BASENAME%] "%_SBT_CMD%" ";dotc %_SOURCE% -d %_OUT_DIR% ;dotr -classpath %_OUT_DIR% %_MAIN%" ^> "%_TMP_FILE%"
3233
call "%_SBT_CMD%" ";dotc %_SOURCE% -d %_OUT_DIR% ;dotr -classpath %_OUT_DIR% %_MAIN%" > "%_TMP_FILE%"
@@ -52,8 +53,8 @@ call :grep "def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" "%
5253
if not %_EXITCODE%==0 goto end
5354

5455
echo testing sbt dotc -decompile from file
55-
if %_DEBUG%==1 echo [%_BASENAME%] call "%_SBT_CMD%" ";dotc -decompile -color:never %_OUT_DIR%\%_TASTY%" ^> "%_TMP_FILE%"
56-
call "%_SBT_CMD%" ";dotc -decompile -color:never %_OUT_DIR%\%_TASTY%" > "%_TMP_FILE%"
56+
if %_DEBUG%==1 echo [%_BASENAME%] call "%_SBT_CMD%" ";dotc -decompile -color:never -classpath %_OUT_DIR% %_OUT_DIR%\%_TASTY%" ^> "%_TMP_FILE%"
57+
call "%_SBT_CMD%" ";dotc -decompile -color:never -classpath %_OUT_DIR% %_OUT_DIR%\%_TASTY%" > "%_TMP_FILE%"
5758
if not %ERRORLEVEL%==0 ( set _EXITCODE=1& goto end )
5859
call :grep "def main(args: scala.Array\[scala.Predef.String\]): scala.Unit =" "%_TMP_FILE%"
5960
if not %_EXITCODE%==0 goto end

0 commit comments

Comments
 (0)