public abstract class AbstractToolsMojo extends AbstractGroovyMojo
ant property requires Java 8, as the included Ant version was compiled for Java 8.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowSystemExits
Whether to allow System.exit() to be used.
|
protected boolean |
bindAllProjectProperties
Whether to add all properties from
project.properties into properties. |
protected boolean |
bindAllSessionUserProperties
Whether to add all properties from
session.userProperties into properties. |
protected boolean |
bindPropertiesToSeparateVariables
Whether to bind each property to a separate variable (otherwise binds properties to a single 'properties' variable).
|
protected boolean |
bindSessionUserOverrideProperties
Whether to add user session properties from
session.userProperties that override project properties
into properties. |
protected IncludeClasspath |
includeClasspath
What classpath to include.
|
protected org.apache.maven.project.MavenProjectHelper |
projectHelper
Maven ProjectHelper to use in properties.
|
protected Properties |
properties
Properties to make available in scripts as variables using the property name.
|
classWrangler, 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 |
|---|
AbstractToolsMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initializeProperties()
Initializes the properties field.
|
protected void |
logUnableToInitializeAntBuilder(Throwable e)
Logs errors that caused the 'ant' object to not be populated.
|
getJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWranglergetLog, getPluginContext, setLog, setPluginContext@Component protected org.apache.maven.project.MavenProjectHelper projectHelper
@Parameter protected Properties properties
@Parameter(defaultValue="true") protected boolean allowSystemExits
false when using parallel
execution, as it isn't thread-safe.@Parameter(defaultValue="true") protected boolean bindPropertiesToSeparateVariables
@Parameter(defaultValue="PROJECT_AND_PLUGIN") protected IncludeClasspath includeClasspath
@Parameter(defaultValue="false") protected boolean bindAllProjectProperties
project.properties into properties.@Parameter(defaultValue="false") protected boolean bindSessionUserOverrideProperties
session.userProperties that override project properties
into properties. bindAllSessionUserProperties takes priority over this property if present. Has no
effect if bindAllProjectProperties is false.@Parameter(defaultValue="false") protected boolean bindAllSessionUserProperties
session.userProperties into properties. If both
bindAllProjectProperties and bindAllSessionUserProperties are specified, the session
properties will override the project properties, but it will also include properties not present in project
properties. To only include user session properties that are also in project properties, use
bindSessionUserOverrideProperties.protected void initializeProperties()
protected void logUnableToInitializeAntBuilder(Throwable e)
e - the exception causing the failureCopyright © 2011–2025. All rights reserved.