added missing check for boot apps, since the check for regular spring apps does not work for fat-jar boot apps

This commit is contained in:
Martin Lippert
2019-01-08 11:50:25 +01:00
parent f0379020bc
commit 674784f9a2

View File

@@ -47,7 +47,7 @@ public class LocalSpringBootApp extends AbstractSpringBootApp {
}
public static Collection<SpringBootApp> getAllRunningSpringApps() throws Exception {
return getAllRunningJavaApps().stream().filter(SpringBootApp::isSpringApp).collect(CollectorUtil.toImmutableList());
return getAllRunningJavaApps().stream().filter(app -> app.isSpringBootApp() || app.isSpringApp()).collect(CollectorUtil.toImmutableList());
}
public LocalSpringBootApp(VirtualMachineDescriptor vmd) throws AttachNotSupportedException, IOException {