Class AbstractBaseTask
- java.lang.Object
-
- com.opencloud.slee.mlet.ant.tasks.AbstractBaseTask
-
- All Implemented Interfaces:
SubTask
- Direct Known Subclasses:
AddAppenderRefTask
,AddPermissionMappingTask
,AddPermissionToRoleTask
,AddServiceBindingsTask
,CascadeUninstallTask
,CheckAlarmsTask
,CheckAllBundlesMappedTask
,CommandLineTask
,ComponentBasedTask
,ConfigureAbsoluteStatLimiterTask
,ConfigureLoggerTask
,ConfigureRateLimiterTask
,ConfigureRelativeStatLimiterTask
,ConfigureSasTask
,ConfigureSaturationLimiterTask
,ConfigureStagingQueuesTask
,ConnectServiceLimiterEndpointTask
,CopyComponentTask
,CreateGenericComponentTask
,CreateJdbcResourceConnectionPoolTask
,CreateLimiterTask
,CreateLinkedComponentTask
,CreateNamespaceTask
,CreatePersistenceInstanceTask
,CreateRoleTask
,CreateSbbUsageParameterSet
,DatabaseResourceTask
,DisableRampUpTask
,DisableSymmetricActivationStateModeTask
,DisconnectServiceLimiterEndpointTask
,EnableRampUpTask
,EnableSymmetricActivationStateModeTask
,EnvEntry
,ImportConfigurationKeyTask
,InstallTask
,NotificationSourceBasedTask
,ProfileValueBasedTask
,RAEntityBasedTask
,RemoveAppenderRefTask
,RemoveCopiedComponentsTask
,RemoveJdbcResourceConnectionPoolTask
,RemoveLimiterTask
,RemoveLinkedComponentTask
,RemoveLoggerConfigTask
,RemoveLoggingPropertyTask
,RemoveNamespaceTask
,RemovePermissionFromRoleTask
,RemovePermissionMappingTask
,RemovePersistenceInstanceTask
,RemoveProfileTableTask
,RemoveRoleTask
,RemoveSasBundleMappingTask
,RemoveSbbUsageParameterSet
,RemoveServiceBindingsTask
,SetActiveNamespaceTask
,SetAdditivityTask
,SetEnvEntries
,SetJdbcResourceConnectionPoolConfigTask
,SetLoggingPropertiesTask
,SetLogLevelTask
,SetSasBundleMappingTask
,SetSasTracingEnabledTask
,ShadowComponentTask
,UnbindRALinkNameTask
,UninstallTask
,UnshadowComponentTask
,UpdatePersistenceInstanceTask
,UserTransactionTask
,WaitTilConvergedTask
public abstract class AbstractBaseTask extends Object implements SubTask
Abstract base class extended by other sub tasks.
Ant Parameters Attribute Description Required failonerror
Flag to control failure behaviour. If 'true', the sub task will throw a
BuildException
when an error is encountered. If 'false', the sub task will throw aNonFatalBuildException
instead of aBuildException
under specific circumstances.No. default value is taken from the Rhino management parent task.
-
-
Field Summary
Fields Modifier and Type Field Description protected RhinoConnection
client
protected boolean
failOnError
-
Constructor Summary
Constructors Constructor Description AbstractBaseTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
execute()
protected String
getExceptionAndMessage(Throwable e)
boolean
getFailOnError()
protected String
getMessage(Throwable e)
boolean
getOverrideFailOnError()
protected BaseAntTask
getParent()
protected org.apache.tools.ant.Project
getProject()
protected void
log(String message, int level)
void
run(BaseAntTask parent, RhinoConnection client, boolean failOnError)
void
setFailOnError(boolean failOnError)
protected abstract void
validateParameters()
-
-
-
Field Detail
-
client
protected RhinoConnection client
-
failOnError
protected boolean failOnError
-
-
Method Detail
-
getFailOnError
public boolean getFailOnError()
- Specified by:
getFailOnError
in interfaceSubTask
-
setFailOnError
public void setFailOnError(boolean failOnError)
-
getOverrideFailOnError
public boolean getOverrideFailOnError()
-
run
public void run(BaseAntTask parent, RhinoConnection client, boolean failOnError) throws org.apache.tools.ant.BuildException
-
log
protected void log(String message, int level)
-
execute
protected abstract void execute() throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
-
validateParameters
protected abstract void validateParameters() throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
-
getParent
protected BaseAntTask getParent()
-
getProject
protected org.apache.tools.ant.Project getProject()
-
-