https://bz.apache.org/bugzilla/show_bug.cgi?id=64927
Bug ID: 64927 Summary: Arguments passed using "value" attributes are split by space Product: Ant Version: 1.10.9 Hardware: PC Status: NEW Severity: critical Priority: P2 Component: Core Assignee: notifications@ant.apache.org Reporter: cosmin_d...@sync.ro Target Milestone: --- Created attachment 37568 --> https://bz.apache.org/bugzilla/attachment.cgi?id=37568&action=edit sample I attached a zip file that contains a sample to reproduce this problem. When I execute the following command: "ant.bat -f "D:\test\build.xml" "-Dscript.location=D:\test\Directory With White Spaces\test.bat" "-Dproject.file=D:\test\project file.xml" -verbose" I receive this error: [exec] Current OS is Windows 10 [exec] Executing 'cmd' with arguments: [exec] '/c' [exec] 'D:\test\Directory With White Spaces\test.bat' [exec] '--project' [exec] 'D:\test\project file.xml' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] 'D:\test\Directory' is not recognized as an internal or external command, [exec] operable program or batch file. If I remove white-spaces from one argument all is ok. Link in this command: "ant.bat -f "D:\test\build.xml" "-Dscript.location=D:\test\Directory With White Spaces\test.bat" "-Dproject.file=D:\test\project_file.xml" -verbose" -- You are receiving this mail because: You are the assignee for the bug.