GeoWebCache/geowebcache — Issue #78: Create template geowebcache.xml config at startup if not provided
Author: GeoWebCache
Created: 2011-10-24 14:59:24+00:00
State: open
Labels: Improvement

The current startup configuration lookup is so that geowebcache first looks for a geowebcache.xml file in the cache directory and if not found it uses a "default" one from the classpath.
This is inconvenient for a couple reasons:
- when people wants to add layers/gridsets they first need to figure out where to get a template geowebcache.xml from (difficult to get from inside the jar file), or to start one from scratch.
- when saving the configuration (like when adding/removing a layer through the rest api), if geowebcache.xml is inside the jar it is not possible to do so.

Alternatively, what GWC should do at startup is to copy over the template geowebcache.xml from inside the jar to the actual cache directory, if it does not exist.