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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
A list of exclusion filters for the compiler.A list of inclusion filters for the compiler.protected boolean
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
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds all source files in a set of directories with a given extension.findSourceWithFilters
(List<File> sourceRootDirs) Finds all source files in a set of directories with a given extension.Retrieves the list of *all* root source directories.protected void
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
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
sendJavaToScalac
@Parameter(defaultValue="true") protected boolean sendJavaToScalacEnables/Disables sending java source to the scala compiler. -
includes
A list of inclusion filters for the compiler. ex :<includes> <include>SomeFile.scala</include> </includes>
-
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
Retrieves the list of *all* root source directories. We need to pass all .java and .scala files into the scala compiler- Throws:
Exception
-
findSourceWithFilters
Finds all source files in a set of directories with a given extension.- Throws:
Exception
-
initFilters
- Throws:
Exception
-
findSourceWithFilters
Finds all source files in a set of directories with a given extension.- Throws:
Exception
-
normalize
This limits the source directories to only those that exist for real.- Throws:
Exception
-