net.sourceforge.cruisecontrol.util
Class BuildOutputLogger
java.lang.Object
net.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.
|
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 |
MAX_LINES
public static final int MAX_LINES
- See Also:
- Constant Field Values
BuildOutputLogger
public BuildOutputLogger(java.io.File outputFile)
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()