public abstract class AbstractCompileMojo extends AbstractGroovySourcesMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug
Whether Groovy compiler should be set to debug.
|
protected boolean |
invokeDynamic
Allow setting whether to support invokeDynamic (requires Java 7 or greater).
|
protected static Version |
MIN_GROOVY_VERSION
The minimum version of Groovy that this mojo supports.
|
protected File |
outputDirectory
The location for the compiled classes.
|
protected String |
sourceEncoding
The encoding of source files.
|
protected String |
targetBytecode
The Groovy compiler bytecode compatibility.
|
protected File |
testOutputDirectory
The location for the compiled test classes.
|
protected int |
tolerance
Groovy compiler error tolerance
(the number of non-fatal errors (per unit) that should be tolerated before compilation is aborted).
|
protected boolean |
verbose
Whether Groovy compiler should be set to verbose.
|
protected int |
warningLevel
Groovy compiler warning level.
|
MAIN, sources, TEST, testSourcesGROOVY_SOURCES_PATTERN, JAVA_SOURCES_PATTERN, localRepository, pluginArtifacts, project, reactorProjects, session, settings| Constructor and Description |
|---|
AbstractCompileMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCompile(Set<File> sourcesToCompile,
List classpath,
File compileOutputDirectory)
Performs compilation of compile mojos.
|
protected boolean |
groovyVersionSupportsAction()
Determines whether this mojo can be run with the version of Groovy supplied.
|
getFiles, getFilesets, getSourceRoots, getSourceRoots, getSources, getSources, getTestSourceRoots, getTestSourceRoots, getTestSources, getTestSources, setSources, setTestSourcesgetGroovyDependency, getGroovyVersion, getGroovyVersionString, getJavaVersion, getJavaVersionString, isGroovyArtifactId, isGroovyArtifactId, isGroovyGroupId, isGroovyGroupId, isGroovyIndy, isJavaSupportIndy, logGroovyVersiongetLog, getPluginContext, setLog, setPluginContextprotected static final Version MIN_GROOVY_VERSION
protected File outputDirectory
protected File testOutputDirectory
protected String sourceEncoding
protected String targetBytecode
protected boolean debug
protected boolean verbose
protected int warningLevel
protected int tolerance
protected boolean invokeDynamic
protected void doCompile(Set<File> sourcesToCompile, List classpath, File compileOutputDirectory) throws ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, MalformedURLException
sourcesToCompile - The sources to compileclasspath - The classpath to use for compilationcompileOutputDirectory - The directory to write the compiled class files toClassNotFoundException - When a class needed for compilation cannot be foundInstantiationException - When a class needed for compilation cannot be instantiatedIllegalAccessException - When a method needed for compilation cannot be accessedInvocationTargetException - When a reflection invocation needed for compilation cannot be completedMalformedURLException - When a classpath element provides a malformed URLprotected boolean groovyVersionSupportsAction()
true only if the version of Groovy supports this mojo.Copyright © 2011-2014. All Rights Reserved.