I’m making someone else’s ant build work with a source path that contains a space. Most of it has been basic shell script stuff, adding double-quotes around paths, but this one has me stumped:
(from build.xml):
<path id="headers">
<fileset dir="${source.main.dir}">
<include name="**/*.h"/>
</fileset>
</path>
source.main.dir is a path containing spaces. It’s prepended to each of the include file names found by the pattern. How do I get this to happen with quotes around each one?
In case it matters, I’m running the build from the command line on OS X Lion 10.7.4.
I think I got it! I changed:
to
And it seems to be working now.