How to properly quote a path in an ant task?
问题 I want to call the <proguard> task in Ant and need to pass it the paths to various JAR files, e.g. the equivalent of: <proguard> -injars /some/path/jar1;/some other path/jar2 </proguard> Problem is, some of these path may contain spaces or special characters, they have to be quoted like this as explained in the proguard manual: <proguard> -injars /some/path/jar1;"/some other path/jar2" </proguard> It doesn't work to quote the whole argument, the individual paths need to be quoted separately.