Package org.codehaus.gmavenplus.mojo
Class AddTestStubSourcesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.gmavenplus.mojo.AbstractGroovyMojo
org.codehaus.gmavenplus.mojo.AbstractGroovySourcesMojo
org.codehaus.gmavenplus.mojo.AbstractGroovyStubSourcesMojo
org.codehaus.gmavenplus.mojo.AddTestStubSourcesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="addTestStubSources",
threadSafe=true)
public class AddTestStubSourcesMojo
extends AbstractGroovyStubSourcesMojo
Adds Groovy test stubs directory back to Maven's list of test source directories. Normally, you won't need to use this mojo.
- Since:
- 1.1
- Author:
- Keegan Witt
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Flag to allow adding test sources to be skipped.protected File
The location for the compiled test classes.Fields inherited from class org.codehaus.gmavenplus.mojo.AbstractGroovySourcesMojo
MAIN, TEST
Fields inherited from class org.codehaus.gmavenplus.mojo.AbstractGroovyMojo
classWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_1_8, JAVA_12, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.codehaus.gmavenplus.mojo.AbstractGroovyStubSourcesMojo
getStubs
Methods inherited from class org.codehaus.gmavenplus.mojo.AbstractGroovySourcesMojo
getFiles, getFilesets, getTestFiles, getTestFilesets
Methods inherited from class org.codehaus.gmavenplus.mojo.AbstractGroovyMojo
getJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWrangler
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
testStubsOutputDirectory
@Parameter(defaultValue="${project.build.directory}/generated-sources/groovy-stubs/test") protected File testStubsOutputDirectoryThe location for the compiled test classes. -
skipTests
@Parameter(property="maven.test.skip", defaultValue="false") protected boolean skipTestsFlag to allow adding test sources to be skipped.
-
-
Constructor Details
-
AddTestStubSourcesMojo
public AddTestStubSourcesMojo()
-
-
Method Details
-
execute
public void execute()Executes this mojo.
-