net.sourceforge.cruisecontrol.util
Class BuildOutputLogger

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.util.BuildOutputLogger
All Implemented Interfaces:
StreamConsumer

public class BuildOutputLogger
extends java.lang.Object
implements StreamConsumer

Logs all sysout and syserr to a file.


Field Summary
static int MAX_LINES
           
 
Constructor Summary
BuildOutputLogger(java.io.File outputFile)
           
 
Method Summary
 void clear()
           
 void consumeLine(java.lang.String line)
          Called when the StreamPumper pumps a line from the Stream.
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 java.lang.String[] retrieveLines(int firstLine)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_LINES

public static final int MAX_LINES
See Also:
Constant Field Values
Constructor Detail

BuildOutputLogger

public BuildOutputLogger(java.io.File outputFile)
Method Detail

clear

public void clear()

consumeLine

public void consumeLine(java.lang.String line)
Description copied from interface: StreamConsumer
Called when the StreamPumper pumps a line from the Stream.

Specified by:
consumeLine in interface StreamConsumer

retrieveLines

public java.lang.String[] retrieveLines(int firstLine)
Returns:
All lines available from firstLine (inclusive) up to MAX_LINES.

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()

toString

public java.lang.String toString()