Changeset 7756 in josm


Ignore:
Timestamp:
2014-12-01T02:52:58+01:00 (10 years ago)
Author:
Don-vip
Message:

see #10795 - get debug info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/RestartAction.java

    r7755 r7756  
    9393                cmd.add(null);
    9494                // 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) {
    96100                    // if it's the agent argument : we ignore it otherwise the
    97101                    // address of the old application and the new one will be in conflict
     
    142146            }
    143147            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            }
    144152            // execute the command in a shutdown hook, to be sure that all the
    145153            // resources have been disposed before restarting the application
Note: See TracChangeset for help on using the changeset viewer.