Changeset 7756 in josm
- Timestamp:
- 2014-12-01T02:52:58+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/RestartAction.java
r7755 r7756 93 93 cmd.add(null); 94 94 // vm arguments 95 for (String arg : ManagementFactory.getRuntimeMXBean().getInputArguments()) { 95 List<String> arguments = ManagementFactory.getRuntimeMXBean().getInputArguments(); 96 if (Main.isDebugEnabled()) { 97 Main.debug("VM arguments: "+arguments.toString()); 98 } 99 for (String arg : arguments) { 96 100 // if it's the agent argument : we ignore it otherwise the 97 101 // address of the old application and the new one will be in conflict … … 142 146 } 143 147 Main.info("Restart "+cmd); 148 if (Main.isDebugEnabled() && Main.pref.getBoolean("restart.debug.simulation")) { 149 Main.debug("Restart cancelled to get debug info"); 150 return; 151 } 144 152 // execute the command in a shutdown hook, to be sure that all the 145 153 // resources have been disposed before restarting the application
Note:
See TracChangeset
for help on using the changeset viewer.