Package scala_maven

Class ScalaSourceMojoSupport

java.lang.Object
org.apache.maven.plugin.AbstractMojo
scala_maven.ScalaMojoSupport
scala_maven.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
  • Field Details

    • 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>
       
    • _filterPrinted

      private boolean _filterPrinted
  • Constructor Details

    • ScalaSourceMojoSupport

      public ScalaSourceMojoSupport()
  • Method Details

    • 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
    • initFilters

      protected void initFilters() throws Exception
      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