Skip to content

Commit 2adca9e

Browse files
quickfix for reloading problems with JavaRedux inside zip/jar
1 parent 577c42a commit 2adca9e

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

key.core/src/main/java/de/uka/ilkd/key/proof/io/OutputStreamProofSaver.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,17 @@ private String makePathsRelative(Path basePath, KeyAst.@Nullable Declarations he
236236
out.println();
237237
Path bootClassPath = jm.getBootClassPath();
238238
if (bootClassPath != null) {
239-
out.printf("\\bootclasspath \"%s\";\n",
240-
safePathRelativeTo(bootClassPath, basePath));
239+
if (!bootClassPath.toUri().getScheme().equals("file")) {
240+
/*
241+
* This happens if JavaRedux (the default bootclasspath) is read from a zip.
242+
* Since we do not support non-file includes, we need to skip it ...
243+
*/
244+
LOGGER.info("Bootclasspath is not a file (probably default bcp inside a zip/jar"
245+
+ " file), skipping: " + bootClassPath);
246+
} else {
247+
out.printf("\\bootclasspath \"%s\";\n",
248+
safePathRelativeTo(bootClassPath, basePath));
249+
}
241250
}
242251

243252
List<Path> classPath = jm.getClassPath();

0 commit comments

Comments
 (0)