org.codehaus.gmaven.plugin.execute
Class ExecuteMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.gmaven.plugin.MojoSupport
          extended by org.codehaus.gmaven.plugin.ProviderMojoSupport
              extended by org.codehaus.gmaven.plugin.ComponentMojoSupport
                  extended by org.codehaus.gmaven.plugin.execute.ExecuteMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ExecuteMojo
extends ComponentMojoSupport

Executes a Groovy script.

Since:
1.0-alpha-1
Version:
$Id: ExecuteMojo.java 88 2009-12-11 11:04:25Z user57 $
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.codehaus.gmaven.plugin.ProviderMojoSupport
pluginArtifactMap
 
Fields inherited from class org.codehaus.gmaven.plugin.MojoSupport
artifactFactory, artifactMetadataSource, artifactRepository, artifactResolver, log, project, remoteRepositories
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ExecuteMojo()
           
 
Method Summary
protected  List getProjectClasspathElements()
          Allow the script to work with every JAR dependency of both the project and plugin, including optional and provided dependencies.
protected  ArtifactItem[] getUserClassspathElements()
           
protected  void process(Component component)
           
 
Methods inherited from class org.codehaus.gmaven.plugin.ComponentMojoSupport
configure, doExecute, feature, feature
 
Methods inherited from class org.codehaus.gmaven.plugin.ProviderMojoSupport
detectCompatibleProvider, getProviderManager, getProviderSelection, provider
 
Methods inherited from class org.codehaus.gmaven.plugin.MojoSupport
createArtifact, createClassPath, execute, getArtifact, resolveArtifact
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteMojo

public ExecuteMojo()
Method Detail

getProjectClasspathElements

protected List getProjectClasspathElements()
                                    throws org.apache.maven.artifact.DependencyResolutionRequiredException
Allow the script to work with every JAR dependency of both the project and plugin, including optional and provided dependencies. Runtime classpath elements are loaded first, so that legacy behavior is not modified. Additional elements are added first in the order of project artifacts, then in the order of plugin artifacts.

Overrides:
getProjectClasspathElements in class MojoSupport
Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException

getUserClassspathElements

protected ArtifactItem[] getUserClassspathElements()
Overrides:
getUserClassspathElements in class MojoSupport

process

protected void process(Component component)
                throws Exception
Specified by:
process in class ComponentMojoSupport
Throws:
Exception


Copyright © 2006-2012 Codehaus. All Rights Reserved.