Class CreateAppenderTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- com.opencloud.slee.mlet.ant.tasks.CreateGenericComponentTask
-
- com.opencloud.slee.mlet.ant.tasks.CreateAppenderTask
-
- All Implemented Interfaces:
SubTask
- Direct Known Subclasses:
CreateConsoleAppenderTask
,CreateGenericAppenderTask
,CreateOutputStreamAppenderTask
public abstract class CreateAppenderTask extends CreateGenericComponentTask
Abstract base class for all sub tasks that create logging appenders.
Ant Parameters Attribute Description Required appendername
Name of the appender to create. This name must be unique.
Yes.
ignoreexceptions
The default is
true
, causing exceptions encountered while appending events to be internally logged and then ignored. When set tofalse
, exceptions will be propagated to the caller instead.No.
failonerror
Flag to control failure behaviour. If
true
, the sub task will throw aBuildException
when an error is encountered. Iffalse
, the sub task will throw aNonFatalBuildException
instead of aBuildException
under specific circumstances. See below for conditions (if any) which will cause aNonFatalBuildException
.No. Default value is taken from the Rhino management parent task.
NonFatalBuildException throw conditions-
Implementation dependent.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
appenderName
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.CreateGenericComponentTask
components, properties
-
Fields inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
client, failOnError
-
-
Constructor Summary
Constructors Constructor Description CreateAppenderTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute()
void
setAppenderName(String appenderName)
void
setIgnoreExceptions(Boolean ignoreExceptions)
protected void
validateParameters()
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.CreateGenericComponentTask
addComponent, addPropertyNotNull, addPropertySet, allTrue, buildGenericComponentData, expandPropertySets, getComponents, getPluginname, getPropertiesArray, setPluginname, setProperties, validateHasProperty
-
Methods inherited from class com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
-
-
-
-
Field Detail
-
appenderName
protected String appenderName
-
-
Method Detail
-
execute
protected void execute() throws org.apache.tools.ant.BuildException
- Overrides:
execute
in classCreateGenericComponentTask
- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected void validateParameters() throws org.apache.tools.ant.BuildException
- Overrides:
validateParameters
in classCreateGenericComponentTask
- Throws:
org.apache.tools.ant.BuildException
-
setAppenderName
public void setAppenderName(String appenderName)
-
setIgnoreExceptions
public void setIgnoreExceptions(Boolean ignoreExceptions)
-
-