Throwable t = event.getException();
AntSession session = event.getSession();
if (t != null && !session.isExceptionConsumed(t)) {
// Some error was thrown from build-impl.xml#compile. Ignore it; generally
// it will have been a compilation error which we do not wish to show.
session.consumeException(t);
}
}
}
public void messageLogged(AntEvent event) {