8000 Merge pull request #2435 from retronym/ticket/7355 · scala/scala@efbac9d · GitHub
[go: up one dir, main page]

Skip to content

Commit efbac9d

Browse files
committed
Merge pull request #2435 from retronym/ticket/7355
SI-7355 Handle spaces in paths in Windows batch files.
2 parents 4dcb33e + 0d2c7e9 commit efbac9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compiler/scala/tools/ant/templates/tool-windows.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ set _LINE_TOOLCP=
1414

1515
:another_param
1616

17-
if "%1%"=="-toolcp" (
18-
set _LINE_TOOLCP=%2%
17+
rem Use "%~1" to handle spaces in paths. See http://ss64.com/nt/syntax-args.html
18+
if "%~1"=="-toolcp" (
19+
set _LINE_TOOLCP=%~2
1920
shift
2021
shift
2122
goto another_param

0 commit comments

Comments
 (0)
0