@@ -5,7 +5,7 @@ package config
5
5
import java .net .{ URL , MalformedURLException }
6
6
import WrappedProperties .AccessControl
7
7
import io .{ ClassPath , File , Directory , Path , AbstractFile }
8
- import classpath .{AggregateClassPath , ClassPathFactory }
8
+ import classpath .{AggregateClassPath , ClassPathFactory , JrtClassPath }
9
9
import ClassPath .{ JavaContext , join , split }
10
10
import PartialFunction .condOpt
11
11
import scala .language .postfixOps
@@ -225,13 +225,14 @@ class PathResolver(implicit ctx: Context) {
225
225
// priority class path takes precedence
226
226
def basis = List [Traversable [ClassPath ]](
227
227
classesInExpandedPath(priorityClassPath), // 0. The priority class path (for testing).
228
- classesInPath(javaBootClassPath), // 1. The Java bootstrap class path.
229
- contentsOfDirsInPath(javaExtDirs), // 2. The Java extension class path.
230
- classesInExpandedPath(javaUserClassPath), // 3. The Java application class path.
231
- classesInPath(scalaBootClassPath), // 4. The Scala boot class path.
232
- contentsOfDirsInPath(scalaExtDirs), // 5. The Scala extension class path.
233
- classesInExpandedPath(userClassPath), // 6. The Scala application class path.
234
- sourcesInPath(sourcePath) // 7. The Scala source path.
228
+ JrtClassPath .apply(), // 1. The Java 9 classpath (backed by the jrt:/ virtual system, if available)
229
+ classesInPath(javaBootClassPath), // 2. The Java bootstrap class path.
230
+ contentsOfDirsInPath(javaExtDirs), // 3. The Java extension class path.
231
+ classesInExpandedPath(javaUserClassPath), // 4. The Java application class path.
232
+ classesInPath(scalaBootClassPath), // 5. The Scala boot class path.
233
+ contentsOfDirsInPath(scalaExtDirs), // 6. The Scala extension class path.
234
+ classesInExpandedPath(userClassPath), // 7. The Scala application class path.
235
+ sourcesInPath(sourcePath) // 8. The Scala source path.
235
236
)
236
237
237
238
lazy val containers = basis.flatten.distinct
0 commit comments