Debugging failing test

This commit is contained in:
BoykoAlex
2018-11-07 17:05:21 -05:00
parent f2be2c717b
commit 9428e96cfc

View File

@@ -49,14 +49,19 @@ public class BootProjectUtil {
}
public static Path jreSources(Path libJar) {
System.out.println("Lib JAR: " + libJar);
Path home = javaHomeFromLibJar(libJar);
if (home != null) {
Path sources = home.resolve("src.zip");
System.out.println("Trying " + sources);
if (Files.exists(sources)) {
System.out.println("Found " + sources);
return sources;
}
sources = home.resolve("lib/src.zip");
System.out.println("Trying " + sources);
if (Files.exists(sources)) {
System.out.println("Found " + sources);
return sources;
}
}