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
- Author:
- Keegan Witt
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
MAIN
Main source directory name.protected static String
TEST
Test 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 SortedSet<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 SortedSet<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 String MAIN
Main source directory name.- See Also:
- Constant Field Values
-
TEST
protected static final String TEST
Test source directory name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFiles
protected SortedSet<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 SortedSet<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
-
-