Class ExecutableModuleTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.eclipse.epsilon.workflow.tasks.EpsilonTask
-
- org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
EclTask,EmlTask,EolTask,EplTask,EUnitTask,ExportableModuleTask,FlockTask
public abstract class ExecutableModuleTask extends EpsilonTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classExecutableModuleTask.ModulePropertyAllow Epsilon Tasks to have arbitrary nested property settings
-
Field Summary
Fields Modifier and Type Field Description protected booleanassertionsprotected java.lang.Stringcodeprotected java.util.List<VariableNestedElement>exportsVariableNestedElementsprotected booleanfineprotected java.util.List<ModelNestedElement>modelNestedElementsprotected IEolModulemoduleprotected java.lang.StringmoduleImplementationClassProvide a specific module class implementation at runtimeprotected java.util.List<ParameterNestedElement>parameterNestedElementsprotected java.lang.Objectresultprotected booleansetBeansprotected java.io.Filesrcprotected java.lang.Stringuriprotected java.util.List<VariableNestedElement>usesVariableNestedElements-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
failOnErrors, failOnWarnings, profile
-
-
Constructor Summary
Constructors Constructor Description ExecutableModuleTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddText(java.lang.String msg)protected voidaddVariables(IEolContext context, java.util.Map<java.lang.String,?>... variableMaps)protected voidconfigureModule()protected IEolModulecreateAlternativeModule()Create an alternative module instance from the provided qualified name of the module classprotected abstract IEolModulecreateDefaultModule()VariableNestedElementcreateExports()ModelNestedElementcreateModel()protected IEolModulecreateModule()ExecutableModuleTask.ModulePropertycreateModuleProperty()Ant constructor for nested elementsParameterNestedElementcreateParameter()VariableNestedElementcreateUses()protected abstract voidexamine()voidexecuteImpl()protected voidexportVariable(java.lang.String var, java.lang.String as, boolean optional, boolean ant)java.lang.StringgetModuleImplementation()java.io.FilegetSrc()java.lang.StringgetTaskName()java.lang.StringgetUri()protected abstract voidinitialize()booleanisAssertions()booleanisDebug()Returns whether the debugger will be used (true) or not (false).booleanisFine()booleanisGUI()Returns whether Epsilon's graphical user input facilities should be enabled or not.booleanisSetBeans()protected voidpopulateModelRepository(java.lang.Boolean mustReload)voidsetAssertions(boolean assertions)voidsetDebug(boolean isDebug)Changes whether the debugger should be used (true) or not (false) for this module.voidsetFine(boolean fine)voidsetGUI(boolean gui)Changes whether Epsilon's graphical user input facilities should be enabled or not.voidsetModuleImplementation(java.lang.String moduleImplementation)voidsetSetBeans(boolean setBeans)voidsetSrc(java.io.File src)voidsetUri(java.lang.String uri)protected voiduseResults()protected voiduseVariable(java.lang.String var, java.lang.String as, boolean optional, boolean ant)-
Methods inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
execute, fail, getActiveTransactions, getBaseDir, getExtendedProperties, getModelRepository, getProjectRepository, getProjectStackFrame, isFailOnErrors, isFailOnWarnings, isProfile, setFailOnErrors, setFailOnWarnings, setProfile, setProjectRepository, usesSharedModelRepository, warn
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
modelNestedElements
protected java.util.List<ModelNestedElement> modelNestedElements
-
usesVariableNestedElements
protected java.util.List<VariableNestedElement> usesVariableNestedElements
-
exportsVariableNestedElements
protected java.util.List<VariableNestedElement> exportsVariableNestedElements
-
parameterNestedElements
protected java.util.List<ParameterNestedElement> parameterNestedElements
-
src
protected java.io.File src
-
code
protected java.lang.String code
-
module
protected IEolModule module
-
assertions
protected boolean assertions
-
uri
protected java.lang.String uri
-
result
protected java.lang.Object result
-
setBeans
protected boolean setBeans
-
fine
protected boolean fine
-
moduleImplementationClass
protected java.lang.String moduleImplementationClass
Provide a specific module class implementation at runtime- Since:
- 1.6
-
-
Method Detail
-
createModel
public ModelNestedElement createModel()
-
createUses
public VariableNestedElement createUses()
-
createExports
public VariableNestedElement createExports()
-
createParameter
public ParameterNestedElement createParameter()
-
configureModule
protected void configureModule() throws EolModelNotFoundException, org.apache.tools.ant.BuildException, EolModelLoadingException- Throws:
EolModelNotFoundExceptionorg.apache.tools.ant.BuildExceptionEolModelLoadingException
-
addVariables
protected void addVariables(IEolContext context, java.util.Map<java.lang.String,?>... variableMaps)
-
useResults
protected void useResults() throws java.lang.Exception- Throws:
java.lang.Exception
-
populateModelRepository
protected void populateModelRepository(java.lang.Boolean mustReload) throws EolModelNotFoundException, EolModelLoadingException
-
getTaskName
public java.lang.String getTaskName()
- Overrides:
getTaskNamein classorg.apache.tools.ant.Task
-
executeImpl
public void executeImpl() throws org.apache.tools.ant.BuildException- Specified by:
executeImplin classEpsilonTask- Throws:
org.apache.tools.ant.BuildException
-
addText
public void addText(java.lang.String msg)
-
getSrc
public java.io.File getSrc()
-
setSrc
public void setSrc(java.io.File src)
-
setUri
public void setUri(java.lang.String uri)
-
getUri
public java.lang.String getUri()
-
isAssertions
public boolean isAssertions()
-
setAssertions
public void setAssertions(boolean assertions)
-
setGUI
public void setGUI(boolean gui)
Changes whether Epsilon's graphical user input facilities should be enabled or not. By default, they are enabled for all tasks except for the EUnit Ant task, in which they are disabled.
-
isGUI
public boolean isGUI()
Returns whether Epsilon's graphical user input facilities should be enabled or not.- See Also:
setGUI(boolean)
-
setDebug
public void setDebug(boolean isDebug)
Changes whether the debugger should be used (true) or not (false) for this module. By default, it is not used.
-
isDebug
public boolean isDebug()
Returns whether the debugger will be used (true) or not (false).
-
useVariable
protected void useVariable(java.lang.String var, java.lang.String as, boolean optional, boolean ant)
-
exportVariable
protected void exportVariable(java.lang.String var, java.lang.String as, boolean optional, boolean ant)
-
setSetBeans
public void setSetBeans(boolean setBeans)
-
isSetBeans
public boolean isSetBeans()
-
isFine
public boolean isFine()
-
setFine
public void setFine(boolean fine)
-
initialize
protected abstract void initialize() throws java.lang.Exception- Throws:
java.lang.Exception
-
examine
protected abstract void examine() throws java.lang.Exception- Throws:
java.lang.Exception
-
createDefaultModule
protected abstract IEolModule createDefaultModule() throws java.lang.Exception
- Throws:
java.lang.Exception
-
createModule
protected IEolModule createModule() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getModuleImplementation
public java.lang.String getModuleImplementation()
-
setModuleImplementation
public void setModuleImplementation(java.lang.String moduleImplementation)
-
createModuleProperty
public ExecutableModuleTask.ModuleProperty createModuleProperty()
Ant constructor for nested elements
-
createAlternativeModule
protected IEolModule createAlternativeModule() throws java.lang.Exception
Create an alternative module instance from the provided qualified name of the module class- Returns:
- The instantiated and configured IEolModule.
- Throws:
java.lang.Exception- If there is an error instantiating the module class and/or configuring the module- Since:
- 1.6
-
-