Changed the ant build script to generate XML output so we can process the results with sonar.

We need to ensure the CI still detects failed tests.