Package scala_maven

Class ScalaSourceMojoSupport

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    ScalaCompilerSupport, ScalaDocMojo

    public abstract class ScalaSourceMojoSupport
    extends ScalaMojoSupport
    Author:
    david.bernard
    • Field Detail

      • sendJavaToScalac

        @Parameter(defaultValue="true")
        protected boolean sendJavaToScalac
        Enables/Disables sending java source to the scala compiler.
      • includes

        @Parameter
        protected Set<String> includes
        A list of inclusion filters for the compiler. ex :
            <includes>
              <include>SomeFile.scala</include>
            </includes>
         
      • excludes

        @Parameter
        protected Set<String> excludes
        A list of exclusion filters for the compiler. ex :
            <excludes>
              <exclude>SomeBadFile.scala</exclude>
            </excludes>
         
    • Constructor Detail

      • ScalaSourceMojoSupport

        public ScalaSourceMojoSupport()
    • Method Detail

      • getSourceDirectories

        protected abstract List<File> getSourceDirectories()
                                                    throws Exception
        Retrieves the list of *all* root source directories. We need to pass all .java and .scala files into the scala compiler
        Throws:
        Exception
      • findSourceWithFilters

        protected List<File> findSourceWithFilters()
                                            throws Exception
        Finds all source files in a set of directories with a given extension.
        Throws:
        Exception
      • findSourceWithFilters

        protected List<File> findSourceWithFilters​(List<File> sourceRootDirs)
                                            throws Exception
        Finds all source files in a set of directories with a given extension.
        Throws:
        Exception
      • normalize

        protected List<File> normalize​(List<String> compileSourceRootsList)
                                throws Exception
        This limits the source directories to only those that exist for real.
        Throws:
        Exception