< prev index next > src/java.base/share/classes/jdk/internal/jrtfs/SystemImage.java
Print this page
/** Internal factory method for testing only, use {@link SystemImage#open(PreviewMode)}. */
public static SystemImage fromDirectory(Path modulesDir, PreviewMode mode) throws IOException {
if (!Files.isDirectory(modulesDir)) {
throw new FileSystemNotFoundException(modulesDir.toString());
}
- return new ExplodedImage(modulesDir);
+ return new ExplodedImage(modulesDir, mode.isPreviewModeEnabled());
}
private static final String RUNTIME_HOME;
// "modules" jimage file Path
private static final Path moduleImageFile;
< prev index next >