8165503: jlink exclude VM plugin's handling of jvmlibs is wrong

Reviewed-by: jlaskey
This commit is contained in:
Athijegannathan Sundararajan 2016-09-07 18:35:21 +05:30
parent b7edd5f9aa
commit 256e3bab87

View File

@ -103,7 +103,9 @@ public final class ExcludeVMPlugin implements Plugin {
List<ResourcePoolEntry> ret = javaBase.entries().filter((t) -> {
String path = t.path();
for (String jvmlib : jvmlibs) {
return t.path().endsWith("/" + jvmlib);
if (t.path().endsWith("/" + jvmlib)) {
return true;
}
}
return false;
}).collect(Collectors.toList());