mirror of
https://github.com/sbt/sbt.git
synced 2026-09-02 02:57:21 +02:00
clean up boot classpath handling
This commit is contained in:
@@ -18,7 +18,7 @@ object JavaCompiler
|
||||
new JavaCompiler {
|
||||
def apply(sources: Seq[File], classpath: Seq[File], outputDirectory: File, options: Seq[String])(implicit log: Logger) {
|
||||
val augmentedClasspath = if(cp.autoBoot) classpath ++ Seq(scalaInstance.libraryJar) else classpath
|
||||
val javaCp = new ClasspathOptions(false, cp.compiler, false)
|
||||
val javaCp = new ClasspathOptions(false, cp.compiler, false, false)
|
||||
val arguments = (new CompilerArguments(scalaInstance, javaCp))(sources, augmentedClasspath, outputDirectory, options)
|
||||
log.debug("running javac with arguments:\n\t" + arguments.mkString("\n\t"))
|
||||
val code: Int = f(arguments, log)
|
||||
|
||||
Reference in New Issue
Block a user