|
@@ -53,6 +53,10 @@ public abstract class ResourceAdapter {
|
|
|
String entryName = (springBootClassPath ? SPRING_BOOT_CLASS_PATH : "") + connection.getEntryName();
|
|
|
JarFile jarFile = connection.getJarFile();
|
|
|
List<JarEntry> entries = jarFile.stream().filter(it -> it.getName().startsWith(entryName)).collect(Collectors.toList());
|
|
|
+ if(entries.isEmpty()){
|
|
|
+ entries = jarFile.stream().filter(it -> it.getName().startsWith(connection.getEntryName())).collect(Collectors.toList());
|
|
|
+ return new JarResource(jarFile, connection.getEntryName(), entries, springBootClassPath);
|
|
|
+ }
|
|
|
return new JarResource(jarFile, entryName, entries, springBootClassPath);
|
|
|
} else {
|
|
|
return new FileResource(resource.getFile(), readonly);
|