org.apache.maven.lifecycle.internal
Class DefaultLifecycleTaskSegmentCalculator

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator
All Implemented Interfaces:
LifecycleTaskSegmentCalculator

@Component(role=LifecycleTaskSegmentCalculator.class)
public class DefaultLifecycleTaskSegmentCalculator
extends Object
implements LifecycleTaskSegmentCalculator

Calculates the task segments in the build

Since:
3.0
Author:
Benjamin Bentmann, Jason van Zyl, jdcasey, Kristian Rosenvold (extracted class)

NOTE: This class is not part of any public api and can be changed or deleted without prior notice.


Constructor Summary
DefaultLifecycleTaskSegmentCalculator()
           
 
Method Summary
 List<TaskSegment> calculateTaskSegments(MavenSession session)
           
 List<TaskSegment> calculateTaskSegments(MavenSession session, List<String> tasks)
           
 boolean requiresProject(MavenSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLifecycleTaskSegmentCalculator

public DefaultLifecycleTaskSegmentCalculator()
Method Detail

calculateTaskSegments

public List<TaskSegment> calculateTaskSegments(MavenSession session)
                                        throws PluginNotFoundException,
                                               PluginResolutionException,
                                               PluginDescriptorParsingException,
                                               MojoNotFoundException,
                                               NoPluginFoundForPrefixException,
                                               InvalidPluginDescriptorException,
                                               PluginVersionResolutionException,
                                               LifecyclePhaseNotFoundException,
                                               LifecycleNotFoundException
Specified by:
calculateTaskSegments in interface LifecycleTaskSegmentCalculator
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginVersionResolutionException
LifecyclePhaseNotFoundException
LifecycleNotFoundException

calculateTaskSegments

public List<TaskSegment> calculateTaskSegments(MavenSession session,
                                               List<String> tasks)
                                        throws PluginNotFoundException,
                                               PluginResolutionException,
                                               PluginDescriptorParsingException,
                                               MojoNotFoundException,
                                               NoPluginFoundForPrefixException,
                                               InvalidPluginDescriptorException,
                                               PluginVersionResolutionException
Specified by:
calculateTaskSegments in interface LifecycleTaskSegmentCalculator
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginVersionResolutionException

requiresProject

public boolean requiresProject(MavenSession session)
Specified by:
requiresProject in interface LifecycleTaskSegmentCalculator


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