Class EugeniaTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class EugeniaTask
    extends EpsilonTask
    Ant wrapper for Eugenia. It is much simpler than the other Epsilon tasks, so it does not inherit from EpsilonTask.
    • Constructor Detail

      • EugeniaTask

        public EugeniaTask()
    • Method Detail

      • setSrc

        public void setSrc​(java.io.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 java.io.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 in EugeniaActionDelegateStep. By default, we will start by cleaning the models produced from the .emf or .ecore source. To unset this option, call this method with null.
      • getFirstStep

        public EugeniaActionDelegateStep getFirstStep()
        Returns the step at which we will start, if set. If unset, returns null.
      • setLastStep

        public void setLastStep​(EugeniaActionDelegateStep lastStep)
        Changes the step at which we will stop in the Eugenia workflow. Valid steps are listed in EugeniaActionDelegateStep. By default, we will run all steps. To unset this option, call this method with null.
      • getLastStep

        public EugeniaActionDelegateStep getLastStep()
        Returns the step at which we will stop, if set. If unset, returns null.
      • 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 class EpsilonTask
        Throws:
        org.apache.tools.ant.BuildException