org.apache.maven.lifecycle
Class DefaultLifecycleExecutor

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.apache.maven.lifecycle.DefaultLifecycleExecutor
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, LifecycleExecutor, org.codehaus.plexus.logging.LogEnabled

public class DefaultLifecycleExecutor
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements LifecycleExecutor, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

Version:
$Id: DefaultLifecycleExecutor.java 752168 2009-03-10 17:22:20Z jdcasey $
Author:
Jason van Zyl, Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.lifecycle.LifecycleExecutor
ROLE
 
Constructor Summary
DefaultLifecycleExecutor()
           
 
Method Summary
 void contextualize(org.codehaus.plexus.context.Context context)
           
 void execute(MavenSession session, ReactorManager rm, EventDispatcher dispatcher)
          Execute a task.
 List getLifecycles()
           
 Map getPhaseToLifecycleMap()
           
 void initialize()
           
protected  void line()
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLifecycleExecutor

public DefaultLifecycleExecutor()
Method Detail

execute

public void execute(MavenSession session,
                    ReactorManager rm,
                    EventDispatcher dispatcher)
             throws BuildFailureException,
                    LifecycleExecutionException
Execute a task. Each task may be a phase in the lifecycle or the execution of a mojo.

Specified by:
execute in interface LifecycleExecutor
Parameters:
session -
rm -
dispatcher -
Throws:
BuildFailureException
LifecycleExecutionException

line

protected void line()

getPhaseToLifecycleMap

public Map getPhaseToLifecycleMap()
                           throws LifecycleExecutionException
Throws:
LifecycleExecutionException

getLifecycles

public List getLifecycles()
Specified by:
getLifecycles in interface LifecycleExecutor

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

contextualize

public void contextualize(org.codehaus.plexus.context.Context context)
                   throws org.codehaus.plexus.context.ContextException
Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Throws:
org.codehaus.plexus.context.ContextException


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.