I have the following in my build.xml:
From my experiments you should not include full path for file you want to exclude. This one doesn't work:
(...> (...)
but this one does: