I'm only going of the Javadoc for the latest version of ANT here and it reads:
"Define a number of tests based on
pattern matching.
batchtest collects the included resources from any number of nested Resource Collections. It then generates a test class name for each resource that ends in .java or .class."
see
here for details.
Looks like it works for both (using the latest version of ANT)?