in src/main/java/org/apache/easyant/core/ant/listerners/DefaultEasyAntLogger.java [74:137]
public void buildFinished(BuildEvent event) {
Throwable error = event.getException();
StringBuilder message = new StringBuilder();
if (error == null) {
message.append(StringUtils.LINE_SEP);
message.append(getBuildSuccessfulMessage());
} else {
message.append(StringUtils.LINE_SEP);
message.append(getBuildFailedMessage());
message.append(StringUtils.LINE_SEP);
message.append("Dr Myrmex found an error when building ");
message.append(extractProjectName(event));
message.append(StringUtils.LINE_SEP);
if (error instanceof BuildException) {
BuildException be = (BuildException) error;
if (be.getLocation().getFileName() != null) {
message.append(WHERE_MSG);
message.append(lSep).append(lSep);
message.append("File : ").append(be.getLocation().getFileName()).append(lSep);
message.append("Line : ").append(be.getLocation().getLineNumber());
message.append(" column : ").append(be.getLocation().getColumnNumber()).append(lSep);
}
if (Project.MSG_DEBUG == msgOutputLevel) {
message.append(StringUtils.LINE_SEP);
message.append("Import stack :");
message.append(StringUtils.LINE_SEP);
ProjectHelper helper = ProjectUtils.getConfiguredProjectHelper(event.getProject());
for (int i = 0; i < helper.getImportStack().size(); i++) {
message.append(helper.getImportStack().get(i).toString());
message.append(StringUtils.LINE_SEP);
}
}
}
message.append(StringUtils.LINE_SEP);
message.append(DIAGNOSTIC_MSG);
message.append(StringUtils.LINE_SEP);
message.append(StringUtils.LINE_SEP);
throwableMessage(message, error, Project.MSG_VERBOSE <= msgOutputLevel);
message.append(StringUtils.LINE_SEP);
if (msgOutputLevel < Project.MSG_VERBOSE) {
message.append(StringUtils.LINE_SEP);
message.append(RECOMENDATION_MSG);
message.append(StringUtils.LINE_SEP);
message.append(StringUtils.LINE_SEP);
message.append(RECOMENDATION_LONG_DESC);
}
}
message.append(StringUtils.LINE_SEP);
message.append(StringUtils.LINE_SEP);
message.append("Total time: ");
message.append(formatTime(System.currentTimeMillis() - startTime));
String msg = message.toString();
if (error == null) {
printMessage(msg, out, Project.MSG_VERBOSE);
} else {
printMessage(msg, err, Project.MSG_ERR);
}
log(msg);
}