Ignore:
Timestamp:
2023-04-26T23:13:00+02:00 (12 months ago)
Author:
taylor.smock
Message:

See #22898: JOSM Validator CLI errors out when is run with --load-preferences argument

There was an additional problem related to the directories setup order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/ValidatorCLI.java

    r18714 r18718  
    163163    public void processArguments(final String[] argArray) {
    164164        try {
     165            // for right-left-hand traffic cache file, needed for preferences
     166            Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance());
    165167            // Ensure that preferences are only in memory
    166168            Config.setPreferencesInstance(new MemoryPreferences());
     
    348350        Logging.setLogLevel(this.logLevel);
    349351        HttpClient.setFactory(Http1Client::new);
    350         Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance()); // for right-left-hand traffic cache file
    351352        Config.setUrlsProvider(JosmUrls.getInstance());
    352353        ProjectionRegistry.setProjection(Projections.getProjectionByCode("epsg:3857".toUpperCase(Locale.ROOT)));
Note: See TracChangeset for help on using the changeset viewer.