protected void logFlush() { if (queuedLine != null) { super.processLine(queuedLine, Project.MSG_VERBOSE); queuedLine = null; } }
/** * Logs a line to the log system of ant. * * @param line the line to log. */ protected void processLine(String line) { processLine(line, level); }
@Override protected void processLine(final String line, final int messageLevel) { if (line.contains("warning")) { sawWarnings = true; } if (messageLevel == Project.MSG_INFO && line.startsWith("Generating ")) { if (queuedLine != null) { super.processLine(queuedLine, Project.MSG_VERBOSE); } queuedLine = line; } else { if (queuedLine != null) { if (line.startsWith("Building ")) { super.processLine(queuedLine, Project.MSG_VERBOSE); } else { super.processLine(queuedLine, Project.MSG_INFO); } queuedLine = null; } super.processLine(line, messageLevel); } }
@Override protected void processLine(String line, int level) { if (line.startsWith(VerboseReporter.LISTENER_PREFIX)) { task.log(line, verbose ? Project.MSG_VERBOSE : Project.MSG_INFO); } else { super.processLine(line, level); } } }
@Override protected void processLine(String line, int level) { if (line.startsWith(VerboseReporter.LISTENER_PREFIX)) { task.log(line, verbose ? Project.MSG_VERBOSE : Project.MSG_INFO); } else { super.processLine(line, level); } } }
/** * Logs a line. * If the line starts with junit.framework.TestListener: set the level * to MSG_VERBOSE. * @param line the line to log. * @param level the logging level to use. */ @Override protected void processLine(final String line, final int level) { if (line.startsWith(TESTLISTENER_PREFIX)) { task.log(line, Project.MSG_VERBOSE); } else { super.processLine(line, level); } } }