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$
Author:
Jason Dillon

Field Summary
static String CLASSPATH_INCLUDE_ALL
           
static String CLASSPATH_INCLUDE_ARTIFACTS
           
static String CLASSPATH_INCLUDE_NONE
           
static String CLASSPATH_INCLUDE_PLUGINS
           
static String CLASSPATH_INCLUDE_RUNTIME
           
 
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  String escapeAsNeeded(String string)
           
protected  Set getClasspathIncludes()
           
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(org.codehaus.gmaven.feature.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
 

Field Detail

CLASSPATH_INCLUDE_ALL

public static final String CLASSPATH_INCLUDE_ALL
See Also:
Constant Field Values

CLASSPATH_INCLUDE_RUNTIME

public static final String CLASSPATH_INCLUDE_RUNTIME
See Also:
Constant Field Values

CLASSPATH_INCLUDE_ARTIFACTS

public static final String CLASSPATH_INCLUDE_ARTIFACTS
See Also:
Constant Field Values

CLASSPATH_INCLUDE_PLUGINS

public static final String CLASSPATH_INCLUDE_PLUGINS
See Also:
Constant Field Values

CLASSPATH_INCLUDE_NONE

public static final String CLASSPATH_INCLUDE_NONE
See Also:
Constant Field Values
Constructor Detail

ExecuteMojo

public ExecuteMojo()
Method Detail

getClasspathIncludes

protected Set getClasspathIncludes()
Since:
1.5

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(org.codehaus.gmaven.feature.Component component)
                throws Exception
Specified by:
process in class ComponentMojoSupport
Throws:
Exception

escapeAsNeeded

protected String escapeAsNeeded(String string)


Copyright © 2006-2012 Codehaus. All Rights Reserved.