public abstract class AbstractGroovySourcesMojo extends AbstractGroovyMojo
Modifier and Type | Field and Description |
---|---|
static String |
MAIN
Main source directory name.
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
sources
The Groovy source files (relative paths).
|
static String |
TEST
Test source directory name.
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
testSources
The Groovy test source files (relative paths).
|
classWrangler, GROOVY_1_5_0, GROOVY_SOURCES_PATTERN, JAVA_1_7, JAVA_SOURCES_PATTERN, minGroovyVersion, mojoExecution, pluginArtifacts, project, session, skipTests
Constructor and Description |
---|
AbstractGroovySourcesMojo() |
Modifier and Type | Method and Description |
---|---|
protected Set<File> |
getFiles(org.apache.maven.shared.model.fileset.FileSet[] fromSources,
String defaultSourceDirectory,
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,
String defaultSubDirectory,
boolean includeJavaSources)
Gets the set of included filesets from the specified source files or
source directory (if sources are null).
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
getSourceRoots()
Gets the filesets of the the main sources (not including Java sources).
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
getSourceRoots(boolean includeJavaSources)
Gets the filesets of the the main sources.
|
protected Set<File> |
getSources()
Gets the set of files of the the main sources (not including Java
sources).
|
protected Set<File> |
getSources(boolean includeJavaSources)
Gets the set of files of the the main sources.
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
getTestSourceRoots()
Gets the filesets of the test sources (not including Java sources).
|
protected org.apache.maven.shared.model.fileset.FileSet[] |
getTestSourceRoots(boolean includeJavaSources)
Gets the filesets of the test sources.
|
protected Set<File> |
getTestSources()
Gets the set of files of the test sources (not including Java sources).
|
protected Set<File> |
getTestSources(boolean includeJavaSources)
Gets the set of files of the test sources.
|
void |
setSources(org.apache.maven.shared.model.fileset.FileSet[] newSources)
Sets the sources to specified.
|
void |
setTestSources(org.apache.maven.shared.model.fileset.FileSet[] newTestSources)
Sets the test sources to specified.
|
getJavaVersion, getJavaVersionString, groovyVersionSupportsAction, isJavaSupportIndy, logPluginClasspath
getLog, getPluginContext, setLog, setPluginContext
public static final String MAIN
public static final String TEST
protected org.apache.maven.shared.model.fileset.FileSet[] sources
protected org.apache.maven.shared.model.fileset.FileSet[] testSources
protected org.apache.maven.shared.model.fileset.FileSet[] getSourceRoots(boolean includeJavaSources)
includeJavaSources
- Whether to include Java sourcesprotected org.apache.maven.shared.model.fileset.FileSet[] getSourceRoots()
protected Set<File> getSources(boolean includeJavaSources)
includeJavaSources
- Whether to include Java sourcesprotected Set<File> getSources()
protected org.apache.maven.shared.model.fileset.FileSet[] getTestSourceRoots(boolean includeJavaSources)
includeJavaSources
- Whether to include Java sourcesprotected org.apache.maven.shared.model.fileset.FileSet[] getTestSourceRoots()
protected Set<File> getTestSources(boolean includeJavaSources)
includeJavaSources
- Whether to include Java sourcesprotected Set<File> getTestSources()
protected Set<File> getFiles(org.apache.maven.shared.model.fileset.FileSet[] fromSources, String defaultSourceDirectory, boolean includeJavaSources)
fromSources
- The sources to get the included files fromdefaultSourceDirectory
- The source directory to fall back on if sources are nullincludeJavaSources
- Whether to include Java sourcesprotected org.apache.maven.shared.model.fileset.FileSet[] getFilesets(org.apache.maven.shared.model.fileset.FileSet[] fromSources, String defaultSubDirectory, boolean includeJavaSources)
fromSources
- The sources to get the included files fromdefaultSubDirectory
- The source subdirectory to fall back on if sources are nullincludeJavaSources
- Whether to include Java sourcespublic void setSources(org.apache.maven.shared.model.fileset.FileSet[] newSources)
newSources
- the sources to setpublic void setTestSources(org.apache.maven.shared.model.fileset.FileSet[] newTestSources)
newTestSources
- the test sources to setCopyright © 2011–2020. All rights reserved.