hudson.model
Class StreamBuildListener
java.lang.Object
hudson.util.AbstractTaskListener
hudson.util.StreamTaskListener
hudson.model.StreamBuildListener
- All Implemented Interfaces:
- BuildListener, TaskListener, Closeable, Serializable
public class StreamBuildListener
- extends StreamTaskListener
- implements BuildListener
BuildListener
that writes to an OutputStream
.
This class is remotable.
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamBuildListener
public StreamBuildListener(OutputStream out,
Charset charset)
StreamBuildListener
public StreamBuildListener(File out,
Charset charset)
throws IOException
- Throws:
IOException
StreamBuildListener
public StreamBuildListener(OutputStream w)
StreamBuildListener
public StreamBuildListener(PrintStream w)
- Deprecated. as of 1.349
The caller should use
StreamBuildListener(OutputStream, Charset)
to pass in
the charset and output stream separately, so that this class can handle encoding correctly.
StreamBuildListener
public StreamBuildListener(PrintStream w,
Charset charset)
started
public void started(List<Cause> causes)
- Description copied from interface:
BuildListener
- Called when a build is started.
- Specified by:
started
in interface BuildListener
- Parameters:
causes
- Causes that started a build. See Run.getCauses()
.
finished
public void finished(Result result)
- Description copied from interface:
BuildListener
- Called when a build is finished.
- Specified by:
finished
in interface BuildListener
Copyright © 2004-2013. All Rights Reserved.