Ignore:
Timestamp:
2018-04-19T20:37:16+02:00 (6 years 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.