summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/templates/tool-windows.tmpl
diff options
context:
space:
mode:
authorPhilippus Baalman <philippus@gmail.com>2017-01-30 22:36:32 +0100
committerPhilippus Baalman <philippus@gmail.com>2017-01-30 22:36:32 +0100
commitdc951d996c79df3ca99752a0f8ad6b4eb8f50a86 (patch)
treedeada41541ad845c1ff0e60ff5f27c26272885bb /src/compiler/scala/tools/ant/templates/tool-windows.tmpl
parentb9d4089d19ead36d07c2d6cdda283c9b678d515e (diff)
downloadscala-dc951d996c79df3ca99752a0f8ad6b4eb8f50a86.tar.gz
scala-dc951d996c79df3ca99752a0f8ad6b4eb8f50a86.tar.bz2
scala-dc951d996c79df3ca99752a0f8ad6b4eb8f50a86.zip
SI-10030 - added quotes in case the path contains a space and an 8.3-compliant path is not available
Diffstat (limited to 'src/compiler/scala/tools/ant/templates/tool-windows.tmpl')
-rw-r--r--src/compiler/scala/tools/ant/templates/tool-windows.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl
index 50e44fb669..338f2f1375 100644
--- a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl
+++ b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl
@@ -156,7 +156,7 @@ rem (see http://support.microsoft.com/?kbid=833431)
rem set _SCALA_HOME=%~dps0..
:set_home
set _BIN_DIR=
- for %%i in (%~sf0) do set _BIN_DIR=%_BIN_DIR%%%~dpsi
+ for %%i in ("%~sf0") do set _BIN_DIR=%_BIN_DIR%%%~dpsi
set _SCALA_HOME=%_BIN_DIR%..
goto :eof