Class EugeniaTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.eclipse.epsilon.workflow.tasks.EpsilonTask
-
- org.eclipse.epsilon.workflow.tasks.eugenia.EugeniaTask
-
- All Implemented Interfaces:
Cloneable
public class EugeniaTask extends EpsilonTask
Ant wrapper for Eugenia. It is much simpler than the other Epsilon tasks, so it doesnot inherit fromEpsilonTask
.
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.EpsilonTask
failOnErrors, failOnWarnings, profile
-
-
Constructor Summary
Constructors Constructor Description EugeniaTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EugeniaExtraModel
createModel()
Creates a new extra model to be used in one of the Eugenia execution steps.void
executeImpl()
EugeniaActionDelegateStep
getFirstStep()
Returns the step at which we will start, if set.EugeniaActionDelegateStep
getLastStep()
Returns the step at which we will stop, if set.File
getSrc()
Returns the source file for the Eugenia workflow.void
setFirstStep(EugeniaActionDelegateStep firstStep)
Changes the step at which we will start in the Eugenia workflow.void
setLastStep(EugeniaActionDelegateStep lastStep)
Changes the step at which we will stop in the Eugenia workflow.void
setSrc(File sourceFile)
Changes the source file for the Eugenia workflow.-
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, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setSrc
public void setSrc(File sourceFile)
Changes the source file for the Eugenia workflow. If the name of source file ends in
.emf
, Eugenia will treat it as an EMFatic specification and will try to convert it to an.ecore/code> model first. Otherwise, it will start the Eugenia workflow directly with it, as if it were an Ecore model.
Important note: the source file must be part of a project in the current workspace.
-
getSrc
public File getSrc()
Returns the source file for the Eugenia workflow.- See Also:
setSrc(File)
-
setFirstStep
public void setFirstStep(EugeniaActionDelegateStep firstStep)
Changes the step at which we will start in the Eugenia workflow. Valid steps are listed inEugeniaActionDelegateStep
. By default, we will start by cleaning the models produced from the .emf or .ecore source. To unset this option, call this method withnull
.
-
getFirstStep
public EugeniaActionDelegateStep getFirstStep()
Returns the step at which we will start, if set. If unset, returnsnull
.
-
setLastStep
public void setLastStep(EugeniaActionDelegateStep lastStep)
Changes the step at which we will stop in the Eugenia workflow. Valid steps are listed inEugeniaActionDelegateStep
. By default, we will run all steps. To unset this option, call this method withnull
.
-
getLastStep
public EugeniaActionDelegateStep getLastStep()
Returns the step at which we will stop, if set. If unset, returnsnull
.
-
createModel
public EugeniaExtraModel createModel()
Creates a new extra model to be used in one of the Eugenia execution steps.
-
executeImpl
public void executeImpl() throws org.apache.tools.ant.BuildException
- Specified by:
executeImpl
in classEpsilonTask
- Throws:
org.apache.tools.ant.BuildException
-
-