I have the following in my build.xml:
A couple of people suggested using . This didn't work with the way my task was specified. trashgod's answer linked to the sixth example on this page which gave me an idea of how to restructure my task specification.
It looks like my problem was related to the way I was specifying the source files. Rather than using elements in a , like this:
I switched to using a single with a path and then a set of elements, like this:
This appears to be functionally identical, but is compatible with the use of :
(Actually, I'm surprised that what was there in the first place worked at all.)