Package scala_maven

Class ScalaSourceMojoSupport

    • Field Detail

      • sendJavaToScalac

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

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

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

        private boolean _filterPrinted
    • Constructor Detail

      • ScalaSourceMojoSupport

        public ScalaSourceMojoSupport()
    • Method Detail

      • getSourceDirectories

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

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

        protected void initFilters()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • findSourceWithFilters

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

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