Class RemoveTestStubsMojo
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.RemoveTestStubsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="removeTestStubs",
defaultPhase=TEST_COMPILE,
threadSafe=true)
public class RemoveTestStubsMojo
extends AbstractGroovyStubSourcesMojo
This mojo removes Groovy test stubs from the project's sources.
- Since:
- 1.0-beta-3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag to allow adding test sources to be skipped.protected FileThe location for the compiled test classes.Fields inherited from class AbstractGroovySourcesMojo
MAIN, TESTFields inherited from class AbstractGroovyMojo
classWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_1_8, JAVA_12, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, sessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractGroovyStubSourcesMojo
getStubsMethods inherited from class AbstractGroovySourcesMojo
getFiles, getFilesets, getTestFiles, getTestFilesetsMethods inherited from class AbstractGroovyMojo
getJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWranglerMethods 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
-
RemoveTestStubsMojo
public RemoveTestStubsMojo()
-
-
Method Details
-
execute
public void execute()Executes this mojo.
-