Incremental

sbt.internal.inc.Incremental
object Incremental

Helper methods for running incremental compilation. This is responsible for is adapting any xsbti.AnalysisCallback into one compatible with the sbt.internal.inc.Incremental class.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

sealed trait CompileCycle

Attributes

Supertypes
class Object
trait Matchable
class Any
case class CompileCycleResult(continue: Boolean, nextInvalidations: Set[String], analysis: Analysis)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
abstract class IncrementalCallback(classFileManager: ClassFileManager)

This is a callback from AnalysisCallback back up to Zinc code to perform mid-compilation.

This is a callback from AnalysisCallback back up to Zinc code to perform mid-compilation.

Attributes

Supertypes
class Object
trait Matchable
class Any
class PrefixingLogger(val prefix: String)(orig: Logger) extends Logger

Attributes

Supertypes
class Logger
trait Logger
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(sources: Set[VirtualFile], converter: FileConverter, lookup: Lookup, previous0: CompileAnalysis, options: IncOptions, currentSetup: MiniSetup, stamper: ReadStamps, output: Output, outputJarContent: OutputJarContent, earlyOutput: Option[Output], earlyAnalysisStore: Option[AnalysisStore], progress: Option[CompileProgress], log: Logger)(compile: (Set[VirtualFile], DependencyChanges, AnalysisCallback, ClassFileManager) => Unit): (Boolean, Analysis)

Runs the incremental compilation algorithm.

Runs the incremental compilation algorithm.

Value parameters

compile

The mechanism to run a single 'step' of compile, for ALL source files involved.

converter

FileConverter to convert between Path and VirtualFileRef.

log

Where all log messages should go

lookup

An instance of the Lookup that implements looking up both classpath elements and Analysis object instances by a binary class name.

options

Incremental compiler options (like name hashing vs. not).

output

The configured output directory/directory mapping for source files.

previous0

The previous dependency Analysis (or an empty one).

sources

The full set of input sources

Attributes

Returns

A flag of whether or not compilation completed successfully, and the resulting dependency analysis object.

def compileAllJava(sources: Seq[VirtualFile], converter: FileConverter, lookup: Lookup, previous0: CompileAnalysis, options: IncOptions, currentSetup: MiniSetup, stamper: ReadStamps, output: Output, outputJarContent: OutputJarContent, earlyOutput: Option[Output], earlyAnalysisStore: Option[AnalysisStore], progress: Option[CompileProgress], log: Logger)(compileJava: (Seq[VirtualFile], AnalysisCallback, ClassFileManager) => Unit): (Boolean, Analysis)

Compile all Java sources. We are using Incremental class because we still need to perform Analysis so other subprojects can do incremental compilation.

Compile all Java sources. We are using Incremental class because we still need to perform Analysis so other subprojects can do incremental compilation.

Attributes

def doCompile(compile: (Set[VirtualFile], DependencyChanges, AnalysisCallback, ClassFileManager) => Unit, callbackBuilder: Builder, classFileManager: ClassFileManager): CompileCycle

Compilation unit in each compile cycle.

Compilation unit in each compile cycle.

Attributes

def extractEarlyJar(earlyOutput: Option[Output]): Option[Path]
def incrementalCompile(sources: Set[VirtualFile], converter: FileConverter, lookup: Lookup, previous0: CompileAnalysis, current: ReadStamps, compile: (Set[VirtualFile], DependencyChanges, AnalysisCallback, ClassFileManager) => Unit, callbackBuilder: Builder, incremental: IncrementalCommon, options: IncOptions, currentSetup: MiniSetup, output: Output, outputJarContent: OutputJarContent, earlyOutput: Option[Output], progress: Option[CompileProgress], log: Logger)(implicit equivS: Equiv[Stamp]): (Boolean, Analysis)

Runs the incremental compiler algorithm.

Runs the incremental compiler algorithm.

Value parameters

callbackBuilder

The builder that builds callback where we report dependency issues.

compile

The function which can run one level of compile.

converter

FileConverter to convert between Path and VirtualFileRef.

current

A mechanism for generating stamps (timestamps, hashes, etc).

equivS

The means of testing whether two "Stamps" are the same.

log

The log where we write debugging information

lookup

An instance of the Lookup that implements looking up both classpath elements and Analysis object instances by a binary class name.

options

Incremental compilation options

outputJarContent

Object that holds cached content of output jar

previous0

The previous dependency Analysis (or an empty one).

profiler

An implementation of an invalidation profiler, empty by default.

sources

The sources to compile

Attributes

Returns

A flag of whether or not compilation completed successfully, and the resulting dependency analysis object.

def isPickleJava(scalacOptions: Seq[String]): Boolean

Deprecated fields

val incDebugProp: String

Attributes

Deprecated
true