cbeust/testng — pull request #260 by criccio (2012-08-08 19:42:18+00:00)
Title: Always use the ResourceCollection iterator when building file list from ant

Hi Cedric
I've been investigating using test-load-balancer(http://test-load-balancer.github.com/) to run my testng tests across multiple machines. They have their own ant FileSet type (LoadBalancedFileSet) which takes the full list of tests and carves it up before sending it over to Junit. I found that it doesn't work with TestNG because TestNG uses the directoryScanner on the fileset, instead of just using the iterator (which is what they override).

This patch simply always uses the iterator on the ResourceCollection to get the fileset list when invoked in ant.

This seems to work just fine for regular ant filesets, and has the benefit of enabling TLB for TestNG executions.

Thanks
Chris