org.apache.tools.ant.taskdefs.optional.perforce

Class SimpleP4OutputHandler

Implemented Interfaces:
ExecuteStreamHandler, P4Handler
Known Direct Subclasses:
P4Submit.P4SubmitAdapter

public class SimpleP4OutputHandler
extends P4HandlerAdapter

simple implementation of P4HandlerAdapter used by tasks which are not actually processing the output from Perforce

Constructor Summary

SimpleP4OutputHandler(P4Base parent)
simple constructor

Method Summary

void
process(String line)
process one line of stderr/stdout if error conditions are detected, then setters are called on the parent

Methods inherited from class org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter

process, setOutput, setProcessErrorStream, setProcessInputStream, setProcessOutputStream, start, stop

Constructor Details

SimpleP4OutputHandler

public SimpleP4OutputHandler(P4Base parent)
simple constructor
Parameters:
parent - a P4Base instance

Method Details

process

public void process(String line)
            throws BuildException
process one line of stderr/stdout if error conditions are detected, then setters are called on the parent
Specified by:
process in interface P4Handler
Overrides:
process in interface P4HandlerAdapter
Parameters:
line - line of output
Throws:
BuildException - does not throw exceptions any more

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.