Example: Provide custom/extended tasks for the workflow

/*******************************************************************************
 * Copyright (c) 2008 The University of York.
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors:
 *     Dimitrios Kolovos - initial API and implementation
******************************************************************************/

package org.eclipse.epsilon.workflow.extension.example.tasks;

import org.eclipse.epsilon.workflow.tasks.EolTask; 
 
public class EolExtTask extends EolTask {
  
  @Override
  protected void initialize() {
    System.err.println("Extending initialize()");
    super.initialize();
  }
  
  @Override
  protected void examine() throws Exception {
    super.examine();
    System.err.println("Extending examine()");
  }
}
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         point="org.eclipse.ant.core.antTasks">
      <antTask
            class="org.eclipse.epsilon.workflow.extension.example.tasks.EolExtTask"
            library="lib/org.eclipse.epsilon.workflow.extension.example.jar"
            name="epsilon.eol.ext">
      </antTask>
   </extension>
   <extension
         point="org.eclipse.ant.core.extraClasspathEntries">
      <extraClasspathEntry
            library="lib/org.eclipse.epsilon.workflow.extension.example.jar">
      </extraClasspathEntry>
   </extension>

</plugin>

Clone Epsilon's Git repository and then:

What's this?

In this example we demonstrate how you can define your own ANT tasks that extend the Epsilon workflow tasks.

What are .emf files?

.emf files are Ecore metamodels expressed using the Emfatic textual syntax.

More examples...

Epsilon Object Language
Epsilon Transformation Language
Epsilon Generation Language
Epsilon Validation Language
Epsilon Merging Language
Epsilon Flock
Epsilon Model Generation Language
Epsilon Pattern Language
Combining the Epsilon Languages
EuGENia
EUnit

Even more examples...

More examples are available in the examples folder of the Git repository.