public final class BuildListenerAdapter extends Object implements BuildListener
TaskListener
as a BuildListener
for compatibility with APIs which historically expected the latter.NULL
Constructor and Description |
---|
BuildListenerAdapter(TaskListener delegate) |
Modifier and Type | Method and Description |
---|---|
void |
annotate(ConsoleNote ann)
Annotates the current position in the output log by using the given annotation.
|
PrintWriter |
error(String msg)
An error in the build.
|
PrintWriter |
error(String format,
Object... args)
|
PrintWriter |
fatalError(String msg)
A fatal error in the build.
|
PrintWriter |
fatalError(String format,
Object... args)
|
PrintStream |
getLogger()
This writer will receive the output of the build
|
void |
hyperlink(String url,
String text)
Places a
HyperlinkNote on the given text. |
static BuildListener |
wrap(TaskListener l) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finished, started
_error, getCharset
public BuildListenerAdapter(TaskListener delegate)
public PrintStream getLogger()
TaskListener
getLogger
in interface TaskListener
public void annotate(ConsoleNote ann) throws IOException
TaskListener
annotate
in interface TaskListener
IOException
public void hyperlink(String url, String text) throws IOException
TaskListener
HyperlinkNote
on the given text.hyperlink
in interface TaskListener
url
- If this starts with '/', it's interpreted as a path within the context path.IOException
public PrintWriter error(String msg)
TaskListener
error
in interface TaskListener
public PrintWriter error(String format, Object... args)
TaskListener
error
in interface TaskListener
public PrintWriter fatalError(String msg)
TaskListener
fatalError
in interface TaskListener
public PrintWriter fatalError(String format, Object... args)
TaskListener
fatalError
in interface TaskListener
public static BuildListener wrap(TaskListener l)
Copyright © 2004–2021. All rights reserved.