@Mojo(name="shell",
requiresDependencyResolution=TEST)
public class ShellMojo
extends AbstractToolsMojo
| Modifier and Type | Field and Description |
|---|---|
protected static Version |
GROOVY_4_0_0_ALPHA1
Groovy 4.0.0 alpha-1 version.
|
protected String |
verbosity
Groovy shell verbosity level.
|
allowSystemExits, bindAllProjectProperties, bindAllSessionUserProperties, bindPropertiesToSeparateVariables, bindSessionUserOverrideProperties, includeClasspath, projectHelper, propertiesclassWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_1_8, JAVA_12, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session| Constructor and Description |
|---|
ShellMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this mojo.
|
protected Object |
setupShell(Class<?> shellClass,
Class<?> bindingClass,
Class<?> ioClass,
Class<?> verbosityClass,
Class<?> loggerClass)
Creates the Groovysh to run.
|
initializeProperties, logUnableToInitializeAntBuildergetJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWranglerprotected static final Version GROOVY_4_0_0_ALPHA1
@Parameter(defaultValue="QUIET") protected String verbosity
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - If an unexpected problem occurs (causes a "BUILD ERROR" message to be displayed)protected Object setupShell(Class<?> shellClass, Class<?> bindingClass, Class<?> ioClass, Class<?> verbosityClass, Class<?> loggerClass) throws InvocationTargetException, IllegalAccessException, InstantiationException
shellClass - the Groovysh classbindingClass - the Binding classioClass - the IO classverbosityClass - the VerbosityloggerClass - the Logger classInstantiationException - when a class needed for setting up a shell cannot be instantiatedIllegalAccessException - when a method needed for setting up a shell cannot be accessedInvocationTargetException - when a reflection invocation needed for setting up a shell cannot be completedCopyright © 2011–2025. All rights reserved.