mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
note about Scala build and compiler interface
This commit is contained in:
@@ -98,6 +98,8 @@ object AnalyzingCompiler
|
||||
{
|
||||
import sbt.IO.{copy, createDirectory, zip, jars, unzip, withTemporaryDirectory}
|
||||
|
||||
// Note: The Scala build now depends on some details of this method:
|
||||
// https://github.com/jsuereth/scala/commit/3431860048df8d2a381fb85a526097e00154eae0
|
||||
/** Extract sources from source jars, compile them with the xsbti interfaces on the classpath, and package the compiled classes and
|
||||
* any resources from the source jars into a final jar.*/
|
||||
def compileSources(sourceJars: Iterable[File], targetJar: File, xsbtiJars: Iterable[File], id: String, compiler: RawCompiler, log: Logger)
|
||||
@@ -124,4 +126,4 @@ object AnalyzingCompiler
|
||||
}
|
||||
}
|
||||
private def isSourceName(name: String): Boolean = name.endsWith(".scala") || name.endsWith(".java")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user