ant java task with space issue
问题 I was trying to execute a jar file via ant script. Like this <java jar="${jar.file}" fork="true" failonerror="true"> <arg line="${jar.args}"/> </java> jar.file has full path to the jar file and contains some space in it. When I executed that on Linux, there was no problem. But when I do the same on Windows I got error. java task couldn't locate the jar! I've tried all different variations like wrapping the file path with quote ("), replaced space with ", tried escaping with backslash, etc.