org.apache.maven.plugins.help
Class HelpUtil

java.lang.Object
  extended by org.apache.maven.plugins.help.HelpUtil

public class HelpUtil
extends Object

Utility methods to play with Help Mojos.

Version:
$Id: HelpUtil.java 689770 2008-08-28 09:47:18Z vsiveton $
Author:
Vincent Siveton

Constructor Summary
HelpUtil()
           
 
Method Summary
protected static org.apache.maven.plugin.descriptor.MojoDescriptor getMojoDescriptor(String task, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, String invokedVia, boolean canUsePrefix, boolean isOptionalMojo)
          Invoke the following private method DefaultLifecycleExecutor#getMojoDescriptor(String, MavenSession, MavenProject, String, boolean, boolean)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpUtil

public HelpUtil()
Method Detail

getMojoDescriptor

protected static org.apache.maven.plugin.descriptor.MojoDescriptor getMojoDescriptor(String task,
                                                                                     org.apache.maven.execution.MavenSession session,
                                                                                     org.apache.maven.project.MavenProject project,
                                                                                     String invokedVia,
                                                                                     boolean canUsePrefix,
                                                                                     boolean isOptionalMojo)
                                                                              throws org.apache.maven.plugin.MojoFailureException,
                                                                                     org.apache.maven.plugin.MojoExecutionException
Invoke the following private method DefaultLifecycleExecutor#getMojoDescriptor(String, MavenSession, MavenProject, String, boolean, boolean)

Parameters:
task - not null
session - not null
project - not null
invokedVia - not null
canUsePrefix - not null
isOptionalMojo - not null
Returns:
MojoDescriptor for the task
Throws:
org.apache.maven.plugin.MojoFailureException - if can not invoke the method.
org.apache.maven.plugin.MojoExecutionException - if no descriptor was found for task.
See Also:
DefaultLifecycleExecutor.getMojoDescriptor(String, MavenSession, MavenProject, String, boolean, boolean)


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