public interface CompilerBridgeProvider
The implementors of this interface will retrieve the compiler bridge following different mechanisms. For example, sbt implements this to use LM to resolve the sources for a given Scala version, which Zinc then compiles and defines an sbt component, which is reused across different sbt projects.
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
fetchCompiledBridge(ScalaInstance scalaInstance,
xsbti.Logger logger)
Get the location of the compiled Scala compiler bridge for a concrete Scala version.
|
ScalaInstance |
fetchScalaInstance(java.lang.String scalaVersion,
xsbti.Logger logger)
Get the Scala instance for a given Scala version.
|
java.io.File fetchCompiledBridge(ScalaInstance scalaInstance, xsbti.Logger logger)
scalaInstance - The Scala instance for which the bridge should be compiled for.logger - A logger.ScalaInstance fetchScalaInstance(java.lang.String scalaVersion, xsbti.Logger logger)
scalaVersion - The scala version we want the instance for.logger - A logger.ScalaInstance,
fetchCompiledBridge(xsbti.compile.ScalaInstance, xsbti.Logger)