AntRunner.antStudent(exerciseName, studentName);
List<File> reports = AntRunner.getTestsReports(exerciseName, studentName);
File buildXml = AntRunner.getBuildXml(exerciseName, studentName);
AntXmlParser antXmlParser = new AntXmlParser();
StudentResults studentResults = antXmlParser.parseStudentResults(buildXml, reports);
return Response.status(200).entity(studentResults).build();
} catch (IOException | ParserConfigurationException | SAXException | InterruptedException e) {
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(e.getMessage()).build();
}
}