mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-31 12:24:10 -08:00
Show java.logging module in JCL comparison
This commit is contained in:
parent
56dfa124ca
commit
9d3ac1a603
|
@ -121,9 +121,10 @@ public class JCLComparisonBuilder {
|
||||||
var packageMap = new HashMap<String, JCLPackage>();
|
var packageMap = new HashMap<String, JCLPackage>();
|
||||||
var classSource = new ClasspathClassHolderSource(classLoader, new ReferenceCache());
|
var classSource = new ClasspathClassHolderSource(classLoader, new ReferenceCache());
|
||||||
visitor = new JCLComparisonVisitor(classSource, packageMap);
|
visitor = new JCLComparisonVisitor(classSource, packageMap);
|
||||||
|
for (var moduleName : List.of("java.base", "java.logging")) {
|
||||||
try {
|
try {
|
||||||
var fs = FileSystems.getFileSystem(URI.create("jrt:/"));
|
var fs = FileSystems.getFileSystem(URI.create("jrt:/"));
|
||||||
var p = fs.getPath("modules/java.base/java");
|
var p = fs.getPath("modules/" + moduleName + "/java");
|
||||||
Files.walkFileTree(p, new SimpleFileVisitor<>() {
|
Files.walkFileTree(p, new SimpleFileVisitor<>() {
|
||||||
@Override
|
@Override
|
||||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
||||||
|
@ -139,6 +140,7 @@ public class JCLComparisonBuilder {
|
||||||
} catch (FileSystemNotFoundException ex) {
|
} catch (FileSystemNotFoundException ex) {
|
||||||
System.out.println("Could not read my modules (perhaps not Java 9?).");
|
System.out.println("Could not read my modules (perhaps not Java 9?).");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (JCLPackage pkg : packageMap.values()) {
|
for (JCLPackage pkg : packageMap.values()) {
|
||||||
for (JCLClass cls : pkg.classes.toArray(new JCLClass[0])) {
|
for (JCLClass cls : pkg.classes.toArray(new JCLClass[0])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user