Generalize handling of ext.dirs

This commit is contained in:
Jason Zaugg 2017-11-01 09:09:25 +10:00
parent 3cd4815fe4
commit bf36f824fd
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ final class CompilerArguments(scalaInstance: xsbti.compile.ScalaInstance, cp: xs
def bootClasspathFor(classpath: Seq[File]) = bootClasspath(hasLibrary(classpath))
import Path._
def extClasspath: Seq[File] = (IO.parseClasspath(System.getProperty("java.ext.dirs", "")) * "*.jar").get
def extClasspath: Seq[File] = List("java.ext.dirs", "scala.ext.dirs").flatMap(k => (IO.parseClasspath(System.getProperty(k, "")) * "*.jar").get)
}
object CompilerArguments {
val BootClasspathOption = "-bootclasspath"