public class ShellMojo extends AbstractToolsMojo
Modifier and Type | Field and Description |
---|---|
protected String |
verbosity
Groovy shell verbosity level.
|
allowSystemExits, bindPropertiesToSeparateVariables, projectHelper, properties
classWrangler, 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 Object |
setupShell(Class shellClass,
Class bindingClass,
Class ioClass,
Class verbosityClass,
Class loggerClass)
Creates the Groovysh to run.
|
initializeProperties, logUnableToInitializeAntBuilder
getJavaVersion, getJavaVersionString, groovyVersionSupportsAction, isJavaSupportIndy, logPluginClasspath
protected 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 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–2024. All rights reserved.