Hi, Your cache was reset probably due to this change: http://josm.openstreetmap.de/changeset/9064/josm
We moved from IndexedDiskCache do BlockDiskCache. As for your problem - this is kind of the problem we face also writing the unit tests. It is solved by calling: org.openstreetmap.josm.JOSMFixture.createUnitTestFixture().init(); Though keep in mind, that this is part of the testing code, so it's located here: http://josm.openstreetmap.de/browser/josm/trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java This should give you a hint, how to initiate "headless" mode. Cheers, Wiktor 2015-12-12 18:52 GMT+01:00 Holger Mappt <holger...@gmx.net>: > My idea was to write a small program that calls TMSLayer.getCache() to get > the TMS cache. But to do that I need to initialize JOSM (preferences, TMS > layer, and tile cache). How would I do that? Is there something like a > headless mode where I can hook into? I tried to call some of the > initialization methods, but there are too many dependencies and I would need > a running JOSM to make that work. > > Does it work to write a plugin that can be called from the command line, but > without the GUI? > > The other option is to re-implement the tile cache code without some of the > dependencies. That seems to be a lot of work. It needs modifications every > time the JOSM tile cache is modified. > > BTW, was the tile cache code modified recently? My cache was reset (erased) > yesterday. > > Holger > _______________________________________________ josm-dev mailing list josm-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/josm-dev