Class EglTask
- 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
-
- org.eclipse.epsilon.workflow.tasks.ExportableModuleTask
-
- org.eclipse.epsilon.workflow.tasks.EglTask
-
- All Implemented Interfaces:
Cloneable
public class EglTask extends ExportableModuleTask
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask
ExecutableModuleTask.ModuleProperty
-
-
Field Summary
Fields Modifier and Type Field Description protected List<EglDefaultFormatterNestedElement>
defaultFormatterNestedElements
protected File
outputRoot
protected String
target
protected Class<? extends EglTemplateFactory>
templateFactoryType
protected Trace
trace
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.ExportableModuleTask
exportAsModel
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask
assertions, code, exportsVariableNestedElements, fine, modelNestedElements, module, moduleImplementationClass, parameterNestedElements, result, setBeans, src, uri, usesVariableNestedElements
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
failOnErrors, failOnWarnings, profile
-
-
Constructor Summary
Constructors Constructor Description EglTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IEolModule
createAlternativeModule()
Create an alternative module instance from the provided qualified name of the module classEglDefaultFormatterNestedElement
createDefaultFormatter()
protected IEolModule
createDefaultModule()
protected void
examine()
protected Collection<? extends Class<?>>
getClassesForExportedModel()
protected Collection<? extends Object>
getObjectsForExportedModel()
File
getOutputRoot()
String
getTarget()
Class<? extends EglTemplateFactory>
getTemplateFactoryType()
protected void
initialize()
void
setOutputRoot(File outputRoot)
void
setTarget(String output)
void
setTemplateFactoryType(Class<? extends EglTemplateFactory> templateFactoryType)
-
Methods inherited from class org.eclipse.epsilon.workflow.tasks.ExportableModuleTask
getExportAsModel, setExportAsModel, shouldExportAsModel
-
Methods inherited from class org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask
addText, addVariables, configureModule, createExports, createModel, createModule, createModuleProperty, createParameter, createUses, executeImpl, exportVariable, getModuleImplementation, getSrc, getTaskName, getUri, isAssertions, isDebug, isFine, isGUI, isSetBeans, populateModelRepository, setAssertions, setDebug, setFine, setGUI, setModuleImplementation, setSetBeans, setSrc, setUri, useResults, useVariable
-
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
-
target
protected String target
-
templateFactoryType
protected Class<? extends EglTemplateFactory> templateFactoryType
-
defaultFormatterNestedElements
protected List<EglDefaultFormatterNestedElement> defaultFormatterNestedElements
-
trace
protected Trace trace
-
outputRoot
protected File outputRoot
-
-
Method Detail
-
createDefaultModule
protected IEolModule createDefaultModule() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
-
createAlternativeModule
protected IEolModule createAlternativeModule() throws InstantiationException, IllegalAccessException, ClassNotFoundException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
Description copied from class:ExecutableModuleTask
Create an alternative module instance from the provided qualified name of the module class- Overrides:
createAlternativeModule
in classExecutableModuleTask
- Returns:
- The instantiated and configured IEolModule.
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
IllegalArgumentException
InvocationTargetException
NoSuchMethodException
SecurityException
-
examine
protected void examine() throws Exception
- Overrides:
examine
in classExportableModuleTask
- Throws:
Exception
-
initialize
protected void initialize() throws Exception
- Specified by:
initialize
in classExecutableModuleTask
- Throws:
Exception
-
getTarget
public String getTarget()
-
setTarget
public void setTarget(String output)
-
getOutputRoot
public File getOutputRoot()
-
setOutputRoot
public void setOutputRoot(File outputRoot)
-
getTemplateFactoryType
public Class<? extends EglTemplateFactory> getTemplateFactoryType()
-
setTemplateFactoryType
public void setTemplateFactoryType(Class<? extends EglTemplateFactory> templateFactoryType)
-
createDefaultFormatter
public EglDefaultFormatterNestedElement createDefaultFormatter()
-
getClassesForExportedModel
protected Collection<? extends Class<?>> getClassesForExportedModel()
- Specified by:
getClassesForExportedModel
in classExportableModuleTask
-
getObjectsForExportedModel
protected Collection<? extends Object> getObjectsForExportedModel()
- Specified by:
getObjectsForExportedModel
in classExportableModuleTask
-
-