public abstract class ScalaCompilerSupport extends ScalaSourceMojoSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL |
static String |
INCREMENTAL |
static String |
MODIFIED_ONLY |
protected String |
recompileMode
Recompile mode to use when sources were previously compiled and there is at least one change:
"modified-only" => only modified sources are recompiled (pre 2.13 behavior), "all" => all sources are recompiled,
"incremental" => incrementally recompile modified sources and other affected sources.
|
excludes, includes, sendJavaToScalacaddJavacArgs, addScalacArgs, args, checkMultipleScalaVersions, compilerPlugins, dependencies, displayCmd, encoding, factory, failOnMultipleScalaVersions, forceUseArgFile, fork, javacArgs, javacGenerateDebugSymbols, jvmArgs, localRepo, mavenProjectBuilder, project, reactorProjects, remoteRepos, resolver, SCALA_COMPILER_ARTIFACTID, SCALA_LIBRARY_ARTIFACTID, scalaClassName, session, source, target, toolchainManager, useCanonicalPath| Constructor and Description |
|---|
ScalaCompilerSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCompileErrors() |
protected int |
compile(List<File> sourceRootDirs,
File outputDir,
File analysisCacheFile,
List<String> classpathElements,
boolean compileInLoop) |
protected File |
defaultAnalysisCacheFile(org.apache.maven.project.MavenProject p) |
protected File |
defaultAnalysisDirectory(org.apache.maven.project.MavenProject p) |
protected File |
defaultTestAnalysisCacheFile(org.apache.maven.project.MavenProject p) |
protected void |
doExecute() |
protected abstract File |
getAnalysisCacheFile()
Analysis cache file for incremental recompilation.
|
protected Map<File,File> |
getAnalysisCacheMap() |
protected abstract List<String> |
getClasspathElements() |
protected List<File> |
getFilesToCompile(List<File> sourceRootDirs,
long lastSuccessfullCompileTime) |
protected abstract File |
getOutputDir() |
protected boolean |
hasCompileErrors()
Returns true if the previous compile failed
|
protected int |
incrementalCompile(List<String> classpathElements,
List<File> sourceRootDirs,
File outputDir,
File cacheFile,
boolean compileInLoop) |
findSourceWithFilters, findSourceWithFilters, getSourceDirectories, initFilters, normalizeaddCompilerPluginOptions, addCompilerToClasspath, addLibraryToClasspath, addToClasspath, addToClasspath, addToClasspath, addToClasspath, checkScalaVersion, execute, findScalaVersion, findVersionFromDependencies, findVersionFromPluginArtifacts, getAllDependencies, getArtifactJar, getArtifactJar, getCompilerDependencies, getCompilerJar, getCompilerPluginOptions, getDependencies, getEmptyScalaCommand, getJavacOptions, getLibraryJar, getPluginArtifactJar, getPluginArtifactJar, getScalaCommand, getScalaOptions, getScalaOrganization, isJavaSupportedByCompiler, resolveArtifactDependencies, resolveDependencyArtifactspublic static final String ALL
public static final String MODIFIED_ONLY
public static final String INCREMENTAL
protected String recompileMode
protected abstract List<String> getClasspathElements() throws Exception
Exceptionprotected abstract File getAnalysisCacheFile() throws Exception
Exceptionprotected void doExecute()
throws Exception
doExecute in class ScalaMojoSupportExceptionprotected int compile(List<File> sourceRootDirs, File outputDir, File analysisCacheFile, List<String> classpathElements, boolean compileInLoop) throws Exception, InterruptedException
ExceptionInterruptedExceptionprotected boolean hasCompileErrors()
protected void clearCompileErrors()
protected List<File> getFilesToCompile(List<File> sourceRootDirs, long lastSuccessfullCompileTime) throws Exception
Exceptionprotected int incrementalCompile(List<String> classpathElements, List<File> sourceRootDirs, File outputDir, File cacheFile, boolean compileInLoop) throws Exception, InterruptedException
ExceptionInterruptedExceptionprotected File defaultAnalysisDirectory(org.apache.maven.project.MavenProject p)
protected File defaultAnalysisCacheFile(org.apache.maven.project.MavenProject p)
protected File defaultTestAnalysisCacheFile(org.apache.maven.project.MavenProject p)
Copyright © 2012–2015. All rights reserved.