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:
Cloneable
- Direct Known Subclasses:
EclTask,EmlTask,EolTask,EplTask,EUnitTask,ExportableModuleTask,FlockTask,PinsetTask
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAllow Epsilon Tasks to have arbitrary nested property settings -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Integerprotected List<VariableNestedElement>protected booleanprotected List<ModelNestedElement>protected IEolModuleprotected StringProvide a specific module class implementation at runtimeprotected List<ParameterNestedElement>protected Objectprotected booleanprotected Fileprotected Stringprotected List<VariableNestedElement>Fields inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
failOnErrors, failOnWarnings, profileFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidaddVariables(IEolContext context, Map<String, ?>... variableMaps) protected voidprotected IEolModuleCreate an alternative module instance from the provided qualified name of the module classprotected abstract IEolModuleprotected IEolModuleAnt constructor for nested elementsprotected abstract voidexamine()voidprotected voidexportVariable(String var, String as, boolean optional, boolean ant) If we're using a host that supports remote debugging, returns the port to be used.getSrc()getUri()protected abstract voidbooleanbooleanisDebug()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.booleanprotected voidpopulateModelRepository(Boolean mustReload) voidsetAssertions(boolean assertions) voidsetDebug(boolean isDebug) Changes whether the debugger should be used (true) or not (false) for this module.voidsetDebugPort(Integer debugPort) Changes the port to listen at, if we're using a host that supports remote debugging.voidsetFine(boolean fine) voidsetGUI(boolean gui) Changes whether Epsilon's graphical user input facilities should be enabled or not.voidsetModuleImplementation(String moduleImplementation) voidsetSetBeans(boolean setBeans) voidvoidprotected voidprotected voiduseVariable(String var, String as, boolean optional, boolean ant) Methods inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
execute, fail, getActiveTransactions, getBaseDir, getDebugSession, getExtendedProperties, getModelRepository, getProjectRepository, getProjectStackFrame, isFailOnErrors, isFailOnWarnings, isProfile, setDebugSession, setFailOnErrors, setFailOnWarnings, setProfile, setProjectRepository, usesSharedModelRepository, warnMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
modelNestedElements
-
usesVariableNestedElements
-
exportsVariableNestedElements
-
parameterNestedElements
-
src
-
code
-
module
-
assertions
protected boolean assertions -
uri
-
result
-
debugPort
-
setBeans
protected boolean setBeans -
fine
protected boolean fine -
moduleImplementationClass
Provide a specific module class implementation at runtime- Since:
- 1.6
-
-
Constructor Details
-
ExecutableModuleTask
public ExecutableModuleTask()
-
-
Method Details
-
createModel
-
createUses
-
createExports
-
createParameter
-
configureModule
protected void configureModule() throws EolModelNotFoundException, org.apache.tools.ant.BuildException, EolModelLoadingException- Throws:
EolModelNotFoundExceptionorg.apache.tools.ant.BuildExceptionEolModelLoadingException
-
addVariables
-
useResults
- Throws:
Exception
-
populateModelRepository
protected void populateModelRepository(Boolean mustReload) throws EolModelNotFoundException, EolModelLoadingException -
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
-
getSrc
-
setSrc
-
setUri
-
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:
-
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
-
exportVariable
-
setSetBeans
public void setSetBeans(boolean setBeans) -
isSetBeans
public boolean isSetBeans() -
isFine
public boolean isFine() -
setFine
public void setFine(boolean fine) -
initialize
- Throws:
Exception
-
examine
- Throws:
Exception
-
createDefaultModule
- Throws:
Exception
-
createModule
- Throws:
Exception
-
getModuleImplementation
-
setModuleImplementation
-
createModuleProperty
Ant constructor for nested elements -
createAlternativeModule
Create an alternative module instance from the provided qualified name of the module class- Returns:
- The instantiated and configured IEolModule.
- Throws:
Exception- If there is an error instantiating the module class and/or configuring the module- Since:
- 1.6
-
getDebugPort
If we're using a host that supports remote debugging, returns the port to be used. -
setDebugPort
Changes the port to listen at, if we're using a host that supports remote debugging.
-