org.apache.catalina.ant
public abstract class BaseRedirectorHelperTask extends Task
Since: 5.5
Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $
Field Summary | |
---|---|
protected boolean | alwaysLog
Flag which indicates that, if redirected, output should also be
always sent to the log. |
protected boolean | failOnError
Whether to fail (with a BuildException) if
ManagerServlet returns an error. |
protected OutputStream | redirectErrStream The stream for error output |
protected Redirector | redirector Redirector helper |
protected boolean | redirectorConfigured
will be set to true when the configuration of the Redirector is
complete. |
protected RedirectorElement | redirectorElement Redirector element for this task |
protected boolean | redirectOutputtrue true when output redirection is requested for this task .
|
protected OutputStream | redirectOutStream The stream for info output |
Method Summary | |
---|---|
void | addConfiguredRedirector(RedirectorElement redirectorElement)
Add a RedirectorElement to this task. |
protected void | closeRedirector()
Ask redirector to close all the streams. |
protected void | handleErrorFlush(String output)
Handles error output with the ERR priority and flushes the stream.
|
protected void | handleErrorOutput(String output)
Handles error output with the ERR priority.
|
protected void | handleFlush(String output)
Handles output with the INFO priority and flushes the stream.
|
protected void | handleFlush(String output, int priority)
Handles output with ERR priority to error stream and all other
pritorities to output stream, then flushes the stream.
|
protected void | handleOutput(String output)
Handles output with the INFO priority.
|
protected void | handleOutput(String output, int priority)
Handles output with ERR priority to error stream and all other
pritorities to output stream.
|
boolean | isFailOnError()
Returns the value of the failOnError
property. |
protected void | openRedirector()
Set up properties on the Redirector and create output streams. |
void | setAlwaysLog(boolean alwaysLog)
If true, (error and non-error) output will be redirected
as specified while being sent to Ant's logging mechanism as if no
redirection had taken place. |
void | setAppend(boolean append)
If true, append output to existing file.
|
void | setCreateEmptyFiles(boolean createEmptyFiles)
Whether output and error files should be created even when empty.
|
void | setError(File error)
File the error output of the task is redirected to.
|
void | setErrorProperty(String errorProperty)
Property name whose value should be set to the error of
the task..
|
void | setFailonerror(boolean fail)
Whether to fail (with a BuildException) if
ManagerServlet returns an error. |
void | setLogError(boolean logError)
Controls whether error output is logged. |
void | setOutput(File out)
File the output of the task is redirected to.
|
void | setOutputproperty(String outputProperty)
Property name whose value should be set to the output of
the task.
|
true
when the configuration of the Redirector is
complete.true
true when output redirection is requested for this task .
Default is to log on Ant log.RedirectorElement
to this task.Parameters: redirectorElement RedirectorElement
.
Parameters: output The error output to log. Should not be null
.
Parameters: output The error output to log. Should not be null
.
Parameters: output The output to log. Should not be null
.
Parameters: output The output to log. Should not be null
.
Parameters: output The output to log. Should not be null
.
Parameters: output The output to log. Should not be null
.
Redirector
itself.Parameters: alwaysLog boolean
Parameters: append if true, append output to existing file
Parameters: createEmptyFiles boolean
.
Parameters: error name of the error file
Parameters: errorProperty property name
Parameters: logError if true the standard error is sent to the Ant log system and not sent to output stream.
Parameters: out name of the output file
Parameters: outputProperty property name