public abstract class ExecutableModuleTask extends EpsilonTask
Modifier and Type | Class and Description |
---|---|
protected static class |
ExecutableModuleTask.ModuleProperty
Allow Epsilon Tasks to have arbitrary nested property settings
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
assertions |
protected String |
code |
protected List<VariableNestedElement> |
exportsVariableNestedElements |
protected boolean |
fine |
protected List<ModelNestedElement> |
modelNestedElements |
protected IEolModule |
module |
protected String |
moduleImplementationClass
Provide a specific module class implementation at runtime
|
protected List<ParameterNestedElement> |
parameterNestedElements |
protected Object |
result |
protected boolean |
setBeans |
protected File |
src |
protected String |
uri |
protected List<VariableNestedElement> |
usesVariableNestedElements |
failOnErrors, failOnWarnings, profile
Constructor and Description |
---|
ExecutableModuleTask() |
Modifier and Type | Method and Description |
---|---|
void |
addText(String msg) |
protected void |
addVariables(IEolContext context,
Map<String,?>... variableMaps) |
protected void |
configureModule() |
protected IEolModule |
createAlternativeModule()
Create an alternative module instance from the provided qualified name of the module class
|
protected abstract IEolModule |
createDefaultModule() |
VariableNestedElement |
createExports() |
ModelNestedElement |
createModel() |
protected IEolModule |
createModule() |
ExecutableModuleTask.ModuleProperty |
createModuleProperty()
Ant constructor for nested elements
|
ParameterNestedElement |
createParameter() |
VariableNestedElement |
createUses() |
protected abstract void |
examine() |
void |
executeImpl() |
protected void |
exportVariable(String var,
String as,
boolean optional,
boolean ant) |
String |
getModuleImplementation() |
File |
getSrc() |
String |
getTaskName() |
String |
getUri() |
protected abstract void |
initialize() |
boolean |
isAssertions() |
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 |
isSetBeans() |
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 |
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 |
setSrc(File src) |
void |
setUri(String uri) |
protected void |
useResults() |
protected void |
useVariable(String var,
String as,
boolean optional,
boolean ant) |
execute, fail, getActiveTransactions, getBaseDir, getExtendedProperties, getProjectRepository, getProjectStackFrame, isFailOnErrors, isFailOnWarnings, isProfile, setFailOnErrors, setFailOnWarnings, setProfile, setProjectRepository, warn
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected List<ModelNestedElement> modelNestedElements
protected List<VariableNestedElement> usesVariableNestedElements
protected List<VariableNestedElement> exportsVariableNestedElements
protected List<ParameterNestedElement> parameterNestedElements
protected File src
protected String code
protected IEolModule module
protected boolean assertions
protected String uri
protected Object result
protected boolean setBeans
protected boolean fine
protected String moduleImplementationClass
public ModelNestedElement createModel()
public VariableNestedElement createUses()
public VariableNestedElement createExports()
public ParameterNestedElement createParameter()
protected void configureModule() throws EolModelNotFoundException, org.apache.tools.ant.BuildException, EolModelLoadingException
EolModelNotFoundException
org.apache.tools.ant.BuildException
EolModelLoadingException
protected void addVariables(IEolContext context, Map<String,?>... variableMaps)
protected void populateModelRepository(Boolean mustReload) throws EolModelNotFoundException, EolModelLoadingException
public String getTaskName()
getTaskName
in class org.apache.tools.ant.Task
public void executeImpl() throws org.apache.tools.ant.BuildException
executeImpl
in class EpsilonTask
org.apache.tools.ant.BuildException
public void addText(String msg)
public File getSrc()
public void setSrc(File src)
public void setUri(String uri)
public String getUri()
public boolean isAssertions()
public void setAssertions(boolean assertions)
public void setGUI(boolean gui)
public boolean isGUI()
setGUI(boolean)
public void setDebug(boolean isDebug)
true
) or not (false
)
for this module. By default, it is not used.public boolean isDebug()
true
) or not (false
).public void setSetBeans(boolean setBeans)
public boolean isSetBeans()
public boolean isFine()
public void setFine(boolean fine)
protected abstract IEolModule createDefaultModule() throws Exception
Exception
protected IEolModule createModule() throws Exception
Exception
public String getModuleImplementation()
public void setModuleImplementation(String moduleImplementation)
public ExecutableModuleTask.ModuleProperty createModuleProperty()
protected IEolModule createAlternativeModule() throws Exception
Exception
- If there is an error instantiating the module class and/or configuring the moduleCopyright © 2020. All rights reserved.