Example: Provide custom/extended tasks for the workflow

/*******************************************************************************
 * Copyright (c) 2008 The University of York.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * 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>

Check out the code from the SVN:

  • go to the SVN repository
  • navigate to trunk/examples
  • check out the org.eclipse.epsilon.workflow.extension.example project

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
Combining the Epsilon Languages
EuGENia
EUnit

Even more examples...

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