public class ShellMojo extends AbstractToolsMojo
Modifier and Type | Field | Description |
---|---|---|
protected String |
verbosity |
Groovy shell verbosity level.
|
classWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session, skipTests
allowSystemExits, bindPropertiesToSeparateVariables, projectHelper, properties
Constructor | Description |
---|---|
ShellMojo() |
Modifier and Type | Method | Description |
---|---|---|
void |
execute() |
Executes this mojo.
|
protected Object |
setupShell(Class shellClass,
Class bindingClass,
Class ioClass,
Class verbosityClass,
Class loggerClass) |
Creates the Groovysh to run.
|
getJavaVersion, getJavaVersionString, groovyVersionSupportsAction, isJavaSupportIndy, logPluginClasspath
getLog, getPluginContext, setLog, setPluginContext
initializeProperties, logUnableToInitializeAntBuilder
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–2019. All rights reserved.