EGF Engine
Release 0.1.0

org.eclipse.egf.common.ant
Class AbstractAntTask

java.lang.Object
  extended by Task
      extended by org.eclipse.egf.common.ant.AbstractAntTask

public abstract class AbstractAntTask
extends Task

Base class for the tasks that are defined in this plug-in. Provides common behavior and facilities.
Code was copied from EMFTask class provided by org.eclipse.emf.ant plug-in.


Constructor Summary
AbstractAntTask()
           
 
Method Summary
static void assertTrue(String message_p, boolean expression_p)
          Throws a BuildException if expression_p is false.
protected  void checkAttributes()
          All the attribute checks should be performed in this method.
protected abstract  void doExecute()
          Performs the task specific code.
 void execute()
           
protected  IProgressMonitor getProgressMonitor()
          Get the ANT progress monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAntTask

public AbstractAntTask()
Method Detail

assertTrue

public static void assertTrue(String message_p,
                              boolean expression_p)
                       throws BuildException
Throws a BuildException if expression_p is false.

Parameters:
message_p -
expression_p -
Throws:
BuildException

getProgressMonitor

protected IProgressMonitor getProgressMonitor()
Get the ANT progress monitor.

Returns:
a not null IProgressMonitor

execute

public final void execute()
                   throws BuildException
Throws:
BuildException
See Also:
org.apache.tools.ant.Task#execute()

checkAttributes

protected void checkAttributes()
                        throws BuildException
All the attribute checks should be performed in this method.

Throws:
BuildException

doExecute

protected abstract void doExecute()
                           throws Exception
Performs the task specific code.

Throws:
Exception

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.