Class AntCompiler.JasperAntLogger
java.lang.Object
org.apache.tools.ant.DefaultLogger
org.apache.jasper.compiler.AntCompiler.JasperAntLogger
- All Implemented Interfaces:
EventListener, org.apache.tools.ant.BuildListener, org.apache.tools.ant.BuildLogger
- Enclosing class:
AntCompiler
public static class AntCompiler.JasperAntLogger
extends org.apache.tools.ant.DefaultLogger
Ant logger that captures compilation output for reporting.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringBuilderBuffer that accumulates compilation output.Fields inherited from class org.apache.tools.ant.DefaultLogger
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns and clears the accumulated compilation report.protected voidprotected voidprintMessage(String message, PrintStream stream, int priority) Methods inherited from class org.apache.tools.ant.DefaultLogger
buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getMessageOutputLevel, getTimestamp, messageLogged, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, targetFinished, targetStarted, taskFinished, taskStarted
-
Field Details
-
reportBuf
Buffer that accumulates compilation output.
-
-
Constructor Details
-
JasperAntLogger
public JasperAntLogger()Constructs a new JasperAntLogger.
-
-
Method Details
-
printMessage
- Overrides:
printMessagein classorg.apache.tools.ant.DefaultLogger
-
log
- Overrides:
login classorg.apache.tools.ant.DefaultLogger
-
getReport
Returns and clears the accumulated compilation report.- Returns:
- the compilation report
-