mirror of https://github.com/sbt/sbt.git
Merge pull request #128 from Duhemm/wip/compiler-api
Minimal API for `ScalaCompiler`, expose in `Compilers`
This commit is contained in:
commit
0539410fdd
|
|
@ -23,7 +23,7 @@ private[sbt] object ComponentCompiler {
|
|||
def apply(scalaInstance: xsbti.compile.ScalaInstance, log: Logger): File =
|
||||
{
|
||||
// this is the instance used to compile the interface component
|
||||
val componentCompiler = new IvyComponentCompiler(new RawCompiler(scalaInstance, ClasspathOptions.auto, log), manager, ivyConfiguration, sourcesModule, log)
|
||||
val componentCompiler = new IvyComponentCompiler(new RawCompiler(scalaInstance, ClasspathOptionsUtil.auto, log), manager, ivyConfiguration, sourcesModule, log)
|
||||
log.debug("Getting " + sourcesModule + " from component compiler for Scala " + scalaInstance.version)
|
||||
componentCompiler()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ abstract class BridgeProviderSpecification extends BaseIvySpecification {
|
|||
val bridgeId = compilerBridgeId(scalaVersion)
|
||||
val sourceModule = ModuleID(xsbti.ArtifactInfo.SbtOrganization, bridgeId, ComponentCompiler.incrementalVersion, Some("component")).sources()
|
||||
|
||||
val raw = new RawCompiler(instance, ClasspathOptions.auto, log)
|
||||
val raw = new RawCompiler(instance, ClasspathOptionsUtil.auto, log)
|
||||
val manager = new ComponentManager(lock, provider(targetDir), None, log)
|
||||
val componentCompiler = new IvyComponentCompiler(raw, manager, ivyConfiguration, sourceModule, log)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue