Re: [Geoserver-devel] resource store and base directory discussion

2015-11-20 Thread Niels Charlier
Hi Jody, I have made a few minor edits to https://github.com/geoserver/geoserver/wiki/Cleaning-up-File-References Now we just need to decide which of the two possibilities we prefer. I really don't mind which one. Regards Niels On 18-11-15 01:48, Jody Garnett wrote: Here is a branch where

Re: [Geoserver-devel] resource store and base directory discussion

2015-11-20 Thread Jody Garnett
Thanks Niels, I think the responsible thing during application startup is to have GeoServerResourceLoader look up the correct value using lookupGeoServerDataDirectory(ServletContext) during application startup. You have four examples of code wanting to do the file thing, they can call

Re: [Geoserver-devel] resource store and base directory discussion

2015-11-17 Thread Niels Charlier
On 17-11-15 02:45, Jody Garnett wrote: > public GeoServerResourceLoader(ResourceStore resourceStore) { > if( resourceStore instanceof FileSystemResourceStore){ > FileSystemResourceStore files = (FileSystemResourceStore) > resourceStore; > this.baseDirectory =

Re: [Geoserver-devel] resource store and base directory discussion

2015-11-17 Thread Jody Garnett
Here is a branch where I am exploring the ideas brought up in our conversation: https://github.com/jodygarnett/geoserver/commits/base_dir So what is going to happen if you are not use the FileSystemResourcestore? The method GeoServerResourceLoader.lookupGeoServerDataDirectory(servletContext)