diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2011-12-09 22:33:01 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2011-12-09 22:33:01 +0100 |
commit | d718a7c7f31afee174958f63d23ede87394a7a4a (patch) | |
tree | 1a6700510487eea58e6ccb77c07262402e2baac3 /src/compiler | |
parent | b6617b091da1ac25c78c1e1323d4d3c9fad8abd7 (diff) | |
download | scala-d718a7c7f31afee174958f63d23ede87394a7a4a.tar.gz scala-d718a7c7f31afee174958f63d23ede87394a7a4a.tar.bz2 scala-d718a7c7f31afee174958f63d23ede87394a7a4a.zip |
Batch files no longer swallow exit codes
Usually scripts like scala.bat and scalac.bat correctly propagate
exit codes from underlying Java invocations. However, if you run these
scripts as follows: "cmd /c scala ...", then errorlevel gets swallowed.
This simple patch fixes the aforementioned problem.
Fixes SI-5295, no review.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/ant/templates/tool-windows.tmpl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl index c59d46683e..9f1fbc4524 100644 --- a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl +++ b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl @@ -86,3 +86,4 @@ goto :eof :end
@@endlocal
+exit /b %errorlevel%
|