public abstract class AbstractGenerateStubsMojo extends AbstractGroovyStubSourcesMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
debug
Whether Groovy compiler should be set to debug.
|
protected static Version |
MIN_GROOVY_VERSION
The minimum version of Groovy that this mojo supports.
|
protected Set<String> |
scriptExtensions
The file extensions of Groovy source files.
|
protected String |
sourceEncoding
The encoding of source files.
|
protected String |
targetBytecode
The Groovy compiler bytecode compatibility.
|
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.
|
stubsOutputDirectory, testStubsOutputDirectoryMAIN, sources, TEST, testSourcesGROOVY_SOURCES_PATTERN, JAVA_SOURCES_PATTERN, localRepository, pluginArtifacts, project, reactorProjects, session, settings| Constructor and Description |
|---|
AbstractGenerateStubsMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStubGeneration(Set<File> stubSources,
List classpath,
File outputDirectory)
Performs the stub generation on the specified source files.
|
protected boolean |
groovyVersionSupportsAction()
Determines whether this mojo can be run with the version of Groovy supplied.
|
protected void |
resetStubModifiedDates(Set<File> stubs)
This is a fix for http://jira.codehaus.org/browse/MGROOVY-187
It modifies the dates of the created stubs to 1/1/1970, ensuring that
the Java compiler will not overwrite perfectly good compiled Groovy
just because it has a newer source stub.
|
getStubs, getTestStubsgetFiles, 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 String sourceEncoding
protected String targetBytecode
protected boolean debug
protected boolean verbose
protected int warningLevel
protected int tolerance
protected void doStubGeneration(Set<File> stubSources, List classpath, File outputDirectory) throws ClassNotFoundException, InvocationTargetException, IllegalAccessException, InstantiationException, MalformedURLException
stubSources - the sources to perform stub generation onclasspath - The classpath to use for compilationoutputDirectory - the directory to write the stub files toClassNotFoundException - When a class needed for stub generation cannot be foundInstantiationException - When a class needed for stub generation cannot be instantiatedIllegalAccessException - When a method needed for stub generation cannot be accessedInvocationTargetException - When a reflection invocation needed for stub generation cannot be completedMalformedURLException - When a classpath element provides a malformed URLprotected boolean groovyVersionSupportsAction()
true only if the version of Groovy supports this mojo.protected void resetStubModifiedDates(Set<File> stubs)
stubs - the files on which to reset the modified dateCopyright © 2011-2014. All Rights Reserved.