public class ConsoleMojo extends AbstractToolsMojo
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 |
|---|
ConsoleMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindAntBuilder(Class consoleClass,
Class bindingClass,
Object console) |
void |
execute()
Executes this mojo.
|
protected Object |
setupConsole(Class consoleClass,
Class bindingClass)
Instantiates a Groovy Console.
|
initializeProperties, logUnableToInitializeAntBuildergetJavaVersion, getJavaVersionString, groovyVersionSupportsAction, isJavaSupportIndy, logPluginClasspathpublic 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 an invocation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayedprotected void bindAntBuilder(Class consoleClass, Class bindingClass, Object console) throws ClassNotFoundException, IllegalAccessException, InvocationTargetException, InstantiationException
protected Object setupConsole(Class consoleClass, Class bindingClass) throws InvocationTargetException, IllegalAccessException, InstantiationException
consoleClass - the Console classbindingClass - the Binding classInstantiationException - when a class needed for creating a console cannot be instantiatedIllegalAccessException - when a method needed for creating a console cannot be accessedInvocationTargetException - when a reflection invocation needed for creating a console cannot be completedCopyright © 2011–2025. All rights reserved.