fix #2490 check Fess-WebAppJar as a key

This commit is contained in:
Shinsuke Sugaya 2020-10-09 07:22:21 +09:00
parent 5f02aa3f8f
commit c868eb45a8

View file

@ -45,7 +45,8 @@ public class FessWebResourceRoot extends StandardRoot {
final Manifest manifest = jarFile.getManifest();
if (manifest != null && manifest.getEntries() != null) {
final Attributes attributes = manifest.getMainAttributes();
if (attributes != null && attributes.get("Fess-WebAppJar") != null) {
if (attributes != null
&& (attributes.get("Fess-WebAppJar") != null || attributes.getValue("Fess-WebAppJar") != null)) {
createWebResourceSet(ResourceSetType.CLASSES_JAR, "/WEB-INF/classes", possibleJar.getURL(), "/");
}
}