change detection is now able to re-connect to already stopped application

This commit is contained in:
Martin Lippert
2018-06-08 18:23:49 +02:00
parent e157343daa
commit 71bebf307a
5 changed files with 134 additions and 37 deletions

View File

@@ -160,12 +160,7 @@ public class SpringBootApp {
public String getJavaCommand() throws IOException {
Properties props = this.vm.getSystemProperties();
if (props.contains("sun.java.command")) {
return props.getProperty("sun.java.command");
}
else {
return null;
}
return (String) props.get("sun.java.command");
}
public boolean containsSystemProperty(Object key) throws IOException {