private NotificationListener buildXmlNotificationListener(String fileName)
{
fileName = fileName.replace('/', '.');
try
{
return new XmlNotificationListener(fileName, new PrintStream(new FileOutputStream(getFile(project.getBasedir() + TARGET_SUREFIRE_REPORTS_TEST_MUNIT_XML + fileName))));
}
catch (FileNotFoundException e)
{
e.printStackTrace();
return new DummyNotificationListener();