mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Show java.logging module in JCL comparison
This commit is contained in:
parent
56dfa124ca
commit
9d3ac1a603
|
@ -121,23 +121,25 @@ 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);
|
||||||
try {
|
for (var moduleName : List.of("java.base", "java.logging")) {
|
||||||
var fs = FileSystems.getFileSystem(URI.create("jrt:/"));
|
try {
|
||||||
var p = fs.getPath("modules/java.base/java");
|
var fs = FileSystems.getFileSystem(URI.create("jrt:/"));
|
||||||
Files.walkFileTree(p, new SimpleFileVisitor<>() {
|
var p = fs.getPath("modules/" + moduleName + "/java");
|
||||||
@Override
|
Files.walkFileTree(p, new SimpleFileVisitor<>() {
|
||||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
@Override
|
||||||
if (validateName(file.getFileName().toString())) {
|
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
|
||||||
try (InputStream input = Files.newInputStream(file)) {
|
if (validateName(file.getFileName().toString())) {
|
||||||
compareClass(input);
|
try (InputStream input = Files.newInputStream(file)) {
|
||||||
|
compareClass(input);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return FileVisitResult.CONTINUE;
|
||||||
}
|
}
|
||||||
return FileVisitResult.CONTINUE;
|
});
|
||||||
}
|
System.out.println();
|
||||||
});
|
} catch (FileSystemNotFoundException ex) {
|
||||||
System.out.println();
|
System.out.println("Could not read my modules (perhaps not Java 9?).");
|
||||||
} catch (FileSystemNotFoundException ex) {
|
}
|
||||||
System.out.println("Could not read my modules (perhaps not Java 9?).");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (JCLPackage pkg : packageMap.values()) {
|
for (JCLPackage pkg : packageMap.values()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user