clean up boot classpath handling

This commit is contained in:
Mark Harrah
2011-03-11 16:54:45 -05:00
parent c0c287d50e
commit 700b67c322
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -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)