8216553: JrtFIleSystemProvider getPath(URI) omits /modules element from file path

Reviewed-by: alanb, jlaskey
This commit is contained in:
Athijegannathan Sundararajan 2019-05-28 19:30:30 +05:30
parent 4ff2682a4a
commit 0c724506b8
4 changed files with 61 additions and 7 deletions

View file

@ -377,9 +377,9 @@ public class JarTask extends AbstractTask<JarTask> {
private final Pattern jarEntry = Pattern.compile(".*!/(?:META-INF/sym/[^/]+/)?(.*)");
/*
* A jrt: URL is of the form jrt:/modules/<module>/<package>/<file>
* A jrt: URL is of the form jrt:/<module>/<package>/<file>
*/
private final Pattern jrtEntry = Pattern.compile("/modules/([^/]+)/(.*)");
private final Pattern jrtEntry = Pattern.compile("/([^/]+)/(.*)");
/*
* A file: URL is of the form file:/path/to/{modules,patches}/<module>/<package>/<file>