Class AbstractGroovySourcesMojo

    • Field Detail

      • sources

        protected org.apache.maven.shared.model.fileset.FileSet[] sources
        The Groovy source files (relative paths). Default: "${project.basedir}/src/main/groovy/**/*.groovy"
      • testSources

        protected org.apache.maven.shared.model.fileset.FileSet[] testSources
        The Groovy test source files (relative paths). Default: "${project.basedir}/src/test/groovy/**/*.groovy"
    • Constructor Detail

      • AbstractGroovySourcesMojo

        public AbstractGroovySourcesMojo()
    • Method Detail

      • getSourceRoots

        protected org.apache.maven.shared.model.fileset.FileSet[] getSourceRoots​(boolean includeJavaSources)
        Gets the filesets of the the main sources.
        Parameters:
        includeJavaSources - Whether to include Java sources
        Returns:
        The filesets of the the main sources.
      • getSourceRoots

        protected org.apache.maven.shared.model.fileset.FileSet[] getSourceRoots()
        Gets the filesets of the the main sources (not including Java sources).
        Returns:
        The filesets of the the main sources.
      • getSources

        protected Set<File> getSources​(boolean includeJavaSources)
        Gets the set of files of the the main sources.
        Parameters:
        includeJavaSources - Whether to include Java sources
        Returns:
        The set of files of the the main sources.
      • getSources

        protected Set<File> getSources()
        Gets the set of files of the the main sources (not including Java sources).
        Returns:
        The set of files of the the main sources.
      • getTestSourceRoots

        protected org.apache.maven.shared.model.fileset.FileSet[] getTestSourceRoots​(boolean includeJavaSources)
        Gets the filesets of the test sources.
        Parameters:
        includeJavaSources - Whether to include Java sources
        Returns:
        The filesets of the test sources.
      • getTestSourceRoots

        protected org.apache.maven.shared.model.fileset.FileSet[] getTestSourceRoots()
        Gets the filesets of the test sources (not including Java sources).
        Returns:
        The filesets of the test sources.
      • getTestSources

        protected Set<File> getTestSources​(boolean includeJavaSources)
        Gets the set of files of the test sources.
        Parameters:
        includeJavaSources - Whether to include Java sources
        Returns:
        The set of files of the test sources.
      • getTestSources

        protected Set<File> getTestSources()
        Gets the set of files of the test sources (not including Java sources).
        Returns:
        The set of files of the test sources.
      • getFiles

        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).
        Parameters:
        fromSources - The sources to get the included files from
        defaultSourceDirectory - The source directory to fall back on if sources are null
        includeJavaSources - 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,
                                                                              String defaultSubDirectory,
                                                                              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 from
        defaultSubDirectory - The source subdirectory to fall back on if sources are null
        includeJavaSources - Whether to include Java sources
        Returns:
        The included filesets from the specified sources
      • setSources

        public void setSources​(org.apache.maven.shared.model.fileset.FileSet[] newSources)
        Sets the sources to specified.
        Parameters:
        newSources - the sources to set
      • setTestSources

        public void setTestSources​(org.apache.maven.shared.model.fileset.FileSet[] newTestSources)
        Sets the test sources to specified.
        Parameters:
        newTestSources - the test sources to set