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
- Author:
- david.bernard
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
excludes
A list of exclusion filters for the compiler.protected Set<String>
includes
A list of inclusion filters for the compiler.protected boolean
sendJavaToScalac
Enables/Disables sending java source to the scala compiler.-
Fields inherited from class scala_maven.ScalaMojoSupport
addJavacArgs, addScalacArgs, args, checkMultipleScalaVersions, compilerPlugins, dependencies, displayCmd, encoding, factory, failOnMultipleScalaVersions, forceUseArgFile, fork, JAR, javacArgs, javacGenerateDebugSymbols, jvmArgs, localRepo, mavenProjectBuilder, POM, project, reactorProjects, remoteRepos, resolver, SCALA_COMPILER_ARTIFACTID, SCALA_LIBRARY_ARTIFACTID, scalaClassName, session, source, target, toolchainManager, useCanonicalPath
-
-
Constructor Summary
Constructors Constructor Description ScalaSourceMojoSupport()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected List<File>
findSourceWithFilters()
Finds all source files in a set of directories with a given extension.protected List<File>
findSourceWithFilters(List<File> sourceRootDirs)
Finds all source files in a set of directories with a given extension.protected abstract List<File>
getSourceDirectories()
Retrieves the list of *all* root source directories.protected void
initFilters()
protected List<File>
normalize(List<String> compileSourceRootsList)
This limits the source directories to only those that exist for real.-
Methods inherited from class scala_maven.ScalaMojoSupport
addCompilerPluginOptions, addCompilerToClasspath, addLibraryToClasspath, addToClasspath, addToClasspath, addToClasspath, addToClasspath, checkScalaVersion, doExecute, execute, findScalaVersion, findVersionFromDependencies, findVersionFromPluginArtifacts, getAllDependencies, getArtifactJar, getArtifactJar, getCompilerDependencies, getCompilerJar, getCompilerPluginOptions, getDependencies, getEmptyScalaCommand, getEmptyScalaCommand, getJavacOptions, getLibraryJar, getPluginArtifactJar, getPluginArtifactJar, getScalaCommand, getScalaCommand, getScalaOptions, getScalaOrganization, isJavaSupportedByCompiler, resolveArtifactDependencies, resolveDependencyArtifacts, resolveDependencyArtifacts, scalaCompilerArtifact
-
-
-
-
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>
-
-
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
-
-