/** * Handles output sent to System.out by this task or its real task. * * @param output The output to log. Should not be <code>null</code>. */ protected void handleOutput(String output) { if (realThing instanceof Task) { ((Task) realThing).handleOutput(output); } else { super.handleOutput(output); } }
/** * Handles output by logging it with the INFO priority. * * @param output The output to log. Should not be <code>null</code>. * * @since Ant 1.5.2 */ protected void handleFlush(String output) { handleOutput(output); }
@Override protected void handleOutput(String output) { if (output.startsWith(VerboseReporter.LISTENER_PREFIX)) { //send everything from VerboseReporter to verbose level unless log level is > 4 log(output, m_verbose < 5 ? Project.MSG_VERBOSE : Project.MSG_INFO); } else { super.handleOutput(output); } }
@Override protected void handleOutput(String output) { if (output.startsWith(VerboseReporter.LISTENER_PREFIX)) { // send everything from VerboseReporter to verbose level unless log level is > 4 log(output, m_verbose < 5 ? Project.MSG_VERBOSE : Project.MSG_INFO); } else { super.handleOutput(output); } }
/** * Pass output sent to System.out to the new project. * * @param output a line of output * @since Ant 1.6.2 */ @Override public void handleOutput(String output) { if (ant != null) { ant.handleOutput(output); } else { super.handleOutput(output); } }
/** * Handles output. * Send it the the new project if is present, otherwise * call the super class. * @param output The string output to output. * @see Task#handleOutput(String) * @since Ant 1.5 */ public void handleOutput(String output) { if (callee != null) { callee.handleOutput(output); } else { super.handleOutput(output); } }
/** * Handles output. * Send it the the new project if is present, otherwise * call the super class. * @param outputToHandle The string output to output. * @see Task#handleOutput(String) * @since Ant 1.5 */ @Override public void handleOutput(String outputToHandle) { if (newProject != null) { newProject.demuxOutput(outputToHandle, false); } else { super.handleOutput(outputToHandle); } }
/** * Pass output sent to System.out to specified output file. * * @param output a string of output on its way to the handlers. * * @since Ant 1.5 */ @Override protected void handleOutput(String output) { if (redirector.getOutputStream() != null) { redirector.handleOutput(output); } else { super.handleOutput(output); } }
/** * Demultiplex output so that each task receives the appropriate * messages. If the current thread is not currently executing a task, * the message is logged directly. * * @param output Message to handle. Should not be <code>null</code>. * @param isWarning Whether the text represents an warning (<code>true</code>) * or information (<code>false</code>). */ public void demuxOutput(final String output, final boolean isWarning) { final Task task = getThreadTask(Thread.currentThread()); if (task == null) { log(output, isWarning ? MSG_WARN : MSG_INFO); } else if (isWarning) { task.handleErrorOutput(output); } else { task.handleOutput(output); } }
/** * Pass output sent to System.out to the TestRunner so it can * collect it for the formatters. * * @param output output coming from System.out * @since Ant 1.5 */ @Override protected void handleOutput(final String output) { if (output.startsWith(TESTLISTENER_PREFIX)) { log(output, Project.MSG_VERBOSE); } else if (runner != null) { if (outputToFormatters) { runner.handleOutput(output); } if (showOutput) { super.handleOutput(output); } } else { super.handleOutput(output); } }