IncrementalCompilerImpl

class IncrementalCompilerImpl extends IncrementalCompiler
trait IncrementalCompiler
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def compile(in: Inputs, logger: Logger): CompileResult

Performs an incremental compilation based on xsbti.compile.Inputs.

Performs an incremental compilation based on xsbti.compile.Inputs.

This is a Scala implementation of xsbti.compile.IncrementalCompiler, check the docs for more information on the specification of this method.

Value Params
in

An instance of xsbti.compile.Inputs that collect all the inputs required to run the compiler (from sources and classpath, to compilation order, previous results, current setup, etc).

logger

An instance of xsbti.Logger to log Zinc output.

Returns

An instance of xsbti.compile.CompileResult that holds information about the results of the compilation. The returned xsbti.compile.CompileResult must be used for subsequent compilations that depend on the same inputs, check its api and its field xsbti.compile.CompileAnalysis.

Definition Classes
IncrementalCompiler
override
def compile(scalaCompiler: ScalaCompiler, javaCompiler: JavaCompiler, sources: Array[VirtualFile], classpath: Array[VirtualFile], output: Output, earlyOutput: Optional[Output], earlyAnalysisStore: Optional[AnalysisStore], cache: GlobalsCache, scalaOptions: Array[String], javaOptions: Array[String], previousAnalysis: Optional[CompileAnalysis], previousSetup: Optional[MiniSetup], perClasspathEntryLookup: PerClasspathEntryLookup, reporter: Reporter, compileOrder: CompileOrder, skip: Boolean, progress: Optional[CompileProgress], incrementalOptions: IncOptions, temporaryClassesDirectory: Optional[Path], extra: Array[T2[String, String]], converter: FileConverter, stampReader: ReadStamps, logger: Logger): CompileResult

Performs an incremental compilation based on xsbti.compile.Inputs.

Performs an incremental compilation based on xsbti.compile.Inputs.

This is a Scala implementation of xsbti.compile.IncrementalCompiler, check the docs for more information on the specification of this method.

Value Params
cache

Directory where previous cached compilers are stored.

classpath

An array of files representing classpath entries.

compileOrder

The order in which Java and Scala sources should be compiled.

extra

An array of sbt tuples with extra options.

incrementalOptions

An Instance of IncOptions that configures the incremental compiler behaviour.

javaCompiler

The Java compiler to compile Java sources.

javaOptions

An array of options for the Java compiler.

logger

An instance of Logger that logs Zinc output.

output

An instance of Output to store the compiler outputs.

perClasspathEntryLookup

Lookup of data structures and operations for a given classpath entry.

previousAnalysis

Optional previous incremental compilation analysis.

previousSetup

Optional previous incremental compilation setup.

progress

An instance of CompileProgress to keep track of the current compilation progress.

reporter

An instance of Reporter to report compiler output.

scalaCompiler

The Scala compiler to compile Scala sources.

scalaOptions

An array of options/settings for the Scala compiler.

skip

Flag to ignore this compilation run and return previous one.

sources

An array of Java and Scala source files to be compiled.

temporaryClassesDirectory

A directory where incremental compiler will put temporary class files or jars.

Returns

An instance of xsbti.compile.CompileResult that holds information about the results of the compilation. The returned xsbti.compile.CompileResult must be used for subsequent compilations that depend on the same inputs, check its api and its field xsbti.compile.CompileAnalysis.

Definition Classes
IncrementalCompiler
override
def compile(scalaCompiler: ScalaCompiler, javaCompiler: JavaCompiler, sources: Array[Path], classpath: Array[Path], output: Output, earlyOutput: Optional[Output], earlyAnalysisStore: Optional[AnalysisStore], cache: GlobalsCache, scalaOptions: Array[String], javaOptions: Array[String], previousAnalysis: Optional[CompileAnalysis], previousSetup: Optional[MiniSetup], perClasspathEntryLookup: PerClasspathEntryLookup, reporter: Reporter, compileOrder: CompileOrder, skip: Boolean, progress: Optional[CompileProgress], incrementalOptions: IncOptions, temporaryClassesDirectory: Optional[Path], extra: Array[T2[String, String]], conveter: FileConverter, stampReader: ReadStamps, logger: Logger): CompileResult

Performs an incremental compilation based on xsbti.compile.Inputs.

Performs an incremental compilation based on xsbti.compile.Inputs.

This is a Scala implementation of xsbti.compile.IncrementalCompiler, check the docs for more information on the specification of this method.

Value Params
cache

Directory where previous cached compilers are stored.

classpath

An array of files representing classpath entries.

compileOrder

The order in which Java and Scala sources should be compiled.

extra

An array of sbt tuples with extra options.

incrementalOptions

An Instance of IncOptions that configures the incremental compiler behaviour.

javaCompiler

The Java compiler to compile Java sources.

javaOptions

An array of options for the Java compiler.

logger

An instance of Logger that logs Zinc output.

output

An instance of Output to store the compiler outputs.

perClasspathEntryLookup

Lookup of data structures and operations for a given classpath entry.

previousAnalysis

Optional previous incremental compilation analysis.

previousSetup

Optional previous incremental compilation setup.

progress

An instance of CompileProgress to keep track of the current compilation progress.

reporter

An instance of Reporter to report compiler output.

scalaCompiler

The Scala compiler to compile Scala sources.

scalaOptions

An array of options/settings for the Scala compiler.

skip

Flag to ignore this compilation run and return previous one.

sources

An array of Java and Scala source files to be compiled.

temporaryClassesDirectory

A directory where incremental compiler will put temporary class files or jars.

Returns

An instance of xsbti.compile.CompileResult that holds information about the results of the compilation. The returned xsbti.compile.CompileResult must be used for subsequent compilations that depend on the same inputs, check its api and its field xsbti.compile.CompileAnalysis.

Definition Classes
IncrementalCompiler
def compileAllJava(in: Inputs, logger: Logger): CompileResult

Compile all Java sources based on xsbti.compile.Inputs.

Compile all Java sources based on xsbti.compile.Inputs.

This is a Scala implementation of xsbti.compile.IncrementalCompiler, check the docs for more information on the specification of this method.

Value Params
in

An instance of xsbti.compile.Inputs that collect all the inputs required to run the compiler (from sources and classpath, to compilation order, previous results, current setup, etc).

logger

An instance of xsbti.Logger to log Zinc output.

Returns

An instance of xsbti.compile.CompileResult that holds information about the results of the compilation. The returned xsbti.compile.CompileResult must be used for subsequent compilations that depend on the same inputs, check its api and its field xsbti.compile.CompileAnalysis.

def compilers(instance: ScalaInstance, cpOptions: ClasspathOptions, javaHome: Option[Path], scalac: ScalaCompiler): Compilers
def compilers(javaTools: JavaTools, scalac: ScalaCompiler): Compilers
def emptyPreviousResult: PreviousResult
def inputs(options: CompileOptions, compilers: Compilers, setup: Setup, pr: PreviousResult): Inputs
def inputs(classpath: Array[VirtualFile], sources: Array[VirtualFile], classesDirectory: Path, earlyJarPath: Option[Path], scalacOptions: Array[String], javacOptions: Array[String], maxErrors: Int, sourcePositionMappers: Array[Function[Position, Optional[Position]]], order: CompileOrder, compilers: Compilers, setup: Setup, pr: PreviousResult, temporaryClassesDirectory: Optional[Path], converter: FileConverter, stampReader: ReadStamps): Inputs
def previousResult(contents: AnalysisContents): PreviousResult
def setup(lookup: PerClasspathEntryLookup, skip: Boolean, cacheFile: Path, cache: GlobalsCache, incOptions: IncOptions, reporter: Reporter, progress: Option[CompileProgress], earlyAnalysisStore: Option[AnalysisStore], extra: Array[T2[String, String]]): Setup