org.codehaus.gmaven.plugin.execute
Class ExecuteMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.gmaven.plugin.MojoSupport
org.codehaus.gmaven.plugin.ProviderMojoSupport
org.codehaus.gmaven.plugin.ComponentMojoSupport
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
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
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
ExecuteMojo
public ExecuteMojo()
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.