< prev index next >
langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/JdepsConfiguration.java
Print this page
*** 125,135 ****
addPackagesInUnnamedModule(archive);
classpathArchives.add(archive);
}
}
! // all roots specified in -addmods or -m are included
// as the initial set for analysis.
roots.stream()
.map(nameToModule::get)
.forEach(this.rootModules::add);
--- 125,135 ----
addPackagesInUnnamedModule(archive);
classpathArchives.add(archive);
}
}
! // all roots specified in --add-modules or -m are included
// as the initial set for analysis.
roots.stream()
.map(nameToModule::get)
.forEach(this.rootModules::add);
*** 340,350 ****
}
}
SystemModuleFinder(String javaHome) throws IOException {
if (javaHome == null) {
! // -system none
this.fileSystem = null;
this.root = null;
this.systemModules = Collections.emptyMap();
} else {
if (Files.isRegularFile(Paths.get(javaHome, "lib", "modules")))
--- 340,350 ----
}
}
SystemModuleFinder(String javaHome) throws IOException {
if (javaHome == null) {
! // --system none
this.fileSystem = null;
this.root = null;
this.systemModules = Collections.emptyMap();
} else {
if (Files.isRegularFile(Paths.get(javaHome, "lib", "modules")))
< prev index next >