Package org.codehaus.gmavenplus.mojo
Class AbstractGroovySourcesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.gmavenplus.mojo.AbstractGroovyMojo
-
- org.codehaus.gmavenplus.mojo.AbstractGroovySourcesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractCompileMojo,AbstractGroovyDocMojo,AbstractGroovyStubSourcesMojo,AddSourcesMojo,AddTestSourcesMojo
public abstract class AbstractGroovySourcesMojo extends AbstractGroovyMojo
This mojo provides access to the Groovy sources.- Since:
- 1.0-beta-2
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringMAINMain source directory name.protected static java.lang.StringTESTTest source directory name.-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractGroovySourcesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.SortedSet<java.io.File>getFiles(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included files from the specified source files or source directory (if sources are null).protected org.apache.maven.shared.model.fileset.FileSet[]getFilesets(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included filesets from the specified source files or source directory (if sources are null).protected java.util.SortedSet<java.io.File>getTestFiles(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included files from the specified source files or source directory (if sources are null).protected org.apache.maven.shared.model.fileset.FileSet[]getTestFilesets(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included filesets from the specified source files or source directory (if sources are null).-
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 Detail
-
MAIN
protected static final java.lang.String MAIN
Main source directory name.- See Also:
- Constant Field Values
-
TEST
protected static final java.lang.String TEST
Test source directory name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFiles
protected java.util.SortedSet<java.io.File> getFiles(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included files from the specified source files or source directory (if sources are null).- Parameters:
fromSources- The sources to get the included files fromincludeJavaSources- Whether to include Java sources- Returns:
- The included files from the specified sources
-
getTestFiles
protected java.util.SortedSet<java.io.File> getTestFiles(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included files from the specified source files or source directory (if sources are null).- Parameters:
fromSources- The sources to get the included files fromincludeJavaSources- Whether to include Java sources- Returns:
- The included files from the specified sources
-
getFilesets
protected org.apache.maven.shared.model.fileset.FileSet[] getFilesets(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included filesets from the specified source files or source directory (if sources are null).- Parameters:
fromSources- The sources to get the included files fromincludeJavaSources- Whether to include Java sources- Returns:
- The included filesets from the specified sources
-
getTestFilesets
protected org.apache.maven.shared.model.fileset.FileSet[] getTestFilesets(org.apache.maven.shared.model.fileset.FileSet[] fromSources, boolean includeJavaSources)Gets the set of included filesets from the specified source files or source directory (if sources are null).- Parameters:
fromSources- The sources to get the included files fromincludeJavaSources- Whether to include Java sources- Returns:
- The included filesets from the specified sources
-
-