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(java.lang.Class consoleClass,
java.lang.Class bindingClass,
java.lang.Object console) |
void |
execute()
Executes this mojo.
|
protected java.lang.Object |
setupConsole(java.lang.Class consoleClass,
java.lang.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(java.lang.Class consoleClass,
java.lang.Class bindingClass,
java.lang.Object console)
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.InstantiationException
java.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.InstantiationExceptionprotected java.lang.Object setupConsole(java.lang.Class consoleClass,
java.lang.Class bindingClass)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException,
java.lang.InstantiationException
consoleClass - the Console classbindingClass - the Binding classjava.lang.InstantiationException - when a class needed for creating a console cannot be instantiatedjava.lang.IllegalAccessException - when a method needed for creating a console cannot be accessedjava.lang.reflect.InvocationTargetException - when a reflection invocation needed for creating a console cannot be completed