public class ShellMojo extends AbstractToolsMojo
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
verbosity
Groovy shell verbosity level.
|
allowSystemExits, bindPropertiesToSeparateVariables, projectHelper, propertiesclassWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session, skipTests| Constructor and Description |
|---|
ShellMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this mojo.
|
protected java.lang.Object |
setupShell(java.lang.Class shellClass,
java.lang.Class bindingClass,
java.lang.Class ioClass,
java.lang.Class verbosityClass,
java.lang.Class loggerClass)
Creates the Groovysh to run.
|
initializeProperties, logUnableToInitializeAntBuildergetJavaVersion, getJavaVersionString, groovyVersionSupportsAction, isJavaSupportIndy, logPluginClasspathprotected java.lang.String verbosity
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 invocation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayedprotected java.lang.Object setupShell(java.lang.Class shellClass,
java.lang.Class bindingClass,
java.lang.Class ioClass,
java.lang.Class verbosityClass,
java.lang.Class loggerClass)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
shellClass - the Groovysh classbindingClass - the Binding classioClass - the IO classverbosityClass - the VerbosityloggerClass - the Logger classjava.lang.InstantiationException - when a class needed for setting up a shell cannot be instantiatedjava.lang.IllegalAccessException - when a method needed for setting up a shell cannot be accessedjava.lang.reflect.InvocationTargetException - when a reflection invocation needed for setting up a shell cannot be completed