in src/main/org/apache/ant/antunit/listener/FailureAntUnitListener.java [165:192]
public String toString() {
StringBuilder sb = new StringBuilder();
// make the reader of the buildfile happy
sb.append(" <!-- ");
sb.append(errorMessage);
sb.append(" -->").append(BR);
// <ant antfile="" inheritAll="false">
sb.append(" <ant ");
sb.append("antfile=\"");
sb.append(buildfile.replace('\\', '/'));
sb.append("\" ");
sb.append("inheritAll=\"false\">");
sb.append(BR);
// <target name=""/>
if (projectHasSetup) {
sb.append(" <target name=\"setUp\"/>").append(BR);
}
sb.append(" <target name=\"");
sb.append(target);
sb.append("\"/>");
sb.append(BR);
if (projectHasTearDown) {
sb.append(" <target name=\"tearDown\"/>").append(BR);
}
// </ant>
sb.append(" </ant>").append(BR);
return sb.toString();
}