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
Modifier and TypeClassDescriptionprotected static class
Allow Epsilon Tasks to have arbitrary nested property settings -
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected Integer
protected List<VariableNestedElement>
protected boolean
protected List<ModelNestedElement>
protected IEolModule
protected String
Provide a specific module class implementation at runtimeprotected List<ParameterNestedElement>
protected Object
protected boolean
protected File
protected String
protected List<VariableNestedElement>
Fields inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
failOnErrors, failOnWarnings, profile
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
addVariables
(IEolContext context, Map<String, ?>... variableMaps) protected void
protected IEolModule
Create an alternative module instance from the provided qualified name of the module classprotected abstract IEolModule
protected IEolModule
Ant constructor for nested elementsprotected abstract void
examine()
void
protected void
exportVariable
(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 void
boolean
boolean
isDebug()
Returns whether the debugger will be used (true
) or not (false
).boolean
isFine()
boolean
isGUI()
Returns whether Epsilon's graphical user input facilities should be enabled or not.boolean
protected void
populateModelRepository
(Boolean mustReload) void
setAssertions
(boolean assertions) void
setDebug
(boolean isDebug) Changes whether the debugger should be used (true
) or not (false
) for this module.void
setDebugPort
(Integer debugPort) Changes the port to listen at, if we're using a host that supports remote debugging.void
setFine
(boolean fine) void
setGUI
(boolean gui) Changes whether Epsilon's graphical user input facilities should be enabled or not.void
setModuleImplementation
(String moduleImplementation) void
setSetBeans
(boolean setBeans) void
void
protected void
protected void
useVariable
(String var, 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
Methods 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:
EolModelNotFoundException
org.apache.tools.ant.BuildException
EolModelLoadingException
-
addVariables
-
useResults
- Throws:
Exception
-
populateModelRepository
protected void populateModelRepository(Boolean mustReload) throws EolModelNotFoundException, EolModelLoadingException -
getTaskName
- Overrides:
getTaskName
in classorg.apache.tools.ant.Task
-
executeImpl
public void executeImpl() throws org.apache.tools.ant.BuildException- Specified by:
executeImpl
in 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.
-