@Mojo(name="addSources",
defaultPhase=INITIALIZE,
threadSafe=true)
public class AddSourcesMojo
extends AbstractGroovySourcesMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.shared.model.fileset.FileSet[] |
sources
The Groovy source files (relative paths).
|
MAIN, TESTclassWrangler, 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 |
|---|
AddSourcesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSourcePath(String path)
Adds the specified source path to the project's main compile sources.
|
void |
execute()
Executes this mojo.
|
getFiles, getFilesets, getTestFiles, getTestFilesetsgetJavaVersion, getJavaVersionString, groovyAtLeast, groovyIs, groovyNewerThan, groovyOlderThan, groovyVersionSupportsAction, isGroovyIndy, isJavaSupportIndy, isJavaSupportParameters, isJavaSupportPreviewFeatures, logPluginClasspath, setupClassWrangler@Parameter protected org.apache.maven.shared.model.fileset.FileSet[] sources
public void execute()
protected void addSourcePath(String path)
path - The source path to add to the project's main compile sourcesCopyright © 2011–2025. All rights reserved.