Ignore:
Timestamp:
2018-04-19T20:37:16+02:00 (19 months ago)
Author:
Don-vip
Message:

see #16204 - Allow to start and close JOSM in WebStart sandbox mode (where every external access is denied). This was very useful to reproduce some very tricky bugs that occured in real life but were almost impossible to diagnose.

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r13300 r13647  
    965965            Set<String> plugins = new HashSet<>(Config.getPref().getList("plugins", new LinkedList<String>()));
    966966            Logging.debug("Plugins list initialized to {0}", plugins);
    967             String systemProp = System.getProperty("josm.plugins");
     967            String systemProp = Utils.getSystemProperty("josm.plugins");
    968968            if (systemProp != null) {
    969969                plugins.addAll(Arrays.asList(systemProp.split(",")));
  • trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java

    r13204 r13647  
    138138        try {
    139139            monitor.beginTask("");
    140             scanSiteCacheFiles(monitor, pluginsDirectory);
    141             scanPluginFiles(monitor, pluginsDirectory);
     140            try {
     141                scanSiteCacheFiles(monitor, pluginsDirectory);
     142            } catch (SecurityException e) {
     143                Logging.log(Logging.LEVEL_ERROR, "Unable to scan site cache files", e);
     144            }
     145            try {
     146                scanPluginFiles(monitor, pluginsDirectory);
     147            } catch (SecurityException e) {
     148                Logging.log(Logging.LEVEL_ERROR, "Unable to scan plugin files", e);
     149            }
    142150        } finally {
    143151            monitor.setCustomText("");
Note: See TracChangeset for help on using the changeset viewer.