forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 1
Cleaning up File References
Jody Garnett edited this page Nov 19, 2015
·
10 revisions
This activity completes the transition to the ResourceStore API.
This work is ongoing, Niels will have a pull request.
The following file references will be maintained:
- Log Files
- GeoWebCache directory
- File upload (
- Spatial data (shapefiles, geotiff, h2 databases)
- Default H2 databases (default for JDBCConfig, Embedded GeoFence, Monitor Extension)
When using a ResourceStore access to the GEOSERVER_DATA_DIRECTORY is no longer required, and can instead be used as a "cache" of ResourceStore content.
This value is supplied by GeoServerResourceLoader#lookupGeoServerDataDirectory(ServletContext) is where this location is defined.
It is obtained twice:
- During logging to locate the GEOSERVER_DATA_DIRECTORY/log folder and obtain the logging profile used during startup, and the location of the geoserver.log file.
- During DataDirectoryResourceStore creation as the location of the "base directory"
This value is published in several locations, we need to ensure that GeoServerResourceLoader.getBaseDirectory().dir() as this would unpack all files.
This occurs in the following locations:
- GeoServer Status Page
©2020 Open Source Geospatial Foundation