public class ExecuteMojo extends AbstractGroovyMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
continueExecuting
Whether to continue executing remaining scripts when a script fails.
|
protected static Version |
MIN_GROOVY_VERSION
The minimum version of Groovy that this mojo supports.
|
protected Properties |
properties
Properties to make available in scripts.
|
protected String[] |
scripts
Groovy scripts to run (in order).
|
protected String |
sourceEncoding
The encoding of script files.
|
GROOVY_SOURCES_PATTERN, JAVA_SOURCES_PATTERN, localRepository, pluginArtifacts, project, reactorProjects, session, settings| Constructor and Description |
|---|
ExecuteMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this mojo.
|
protected boolean |
groovyVersionSupportsAction()
Determines whether this mojo can be run with the version of Groovy supplied.
|
getGroovyDependency, getGroovyVersion, getGroovyVersionString, getJavaVersion, getJavaVersionString, isGroovyArtifactId, isGroovyArtifactId, isGroovyGroupId, isGroovyGroupId, isGroovyIndy, isJavaSupportIndy, logGroovyVersionprotected static final Version MIN_GROOVY_VERSION
protected String[] scripts
URL to a Groovy script (local or remote).protected boolean continueExecuting
protected String sourceEncoding
protected Properties properties
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - If an unexpected problem occurs. Throwing this exception causes a "BUILD ERROR" message to be displayedorg.apache.maven.plugin.MojoFailureException - If an expected problem (such as a compilation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayedprotected boolean groovyVersionSupportsAction()
true only if the version of Groovy supports this mojo.Copyright © 2011-2014. All Rights Reserved.