Hi, My automated data updater is nearly finished. One thing I still need to do is wipe the GeoWebCache for a layer when either the backing file or the default style has changed. I am injecting my updater Spring bean with a reference to the running GeoServer instance. Is there a convenient way to traverse the object graph from the GeoServer object in order to get the paths to the GEOSERVER_DATA_DIR (which always contains the styles directory) and the GWC directory (which could be somewhere else)?
BTW, this automated updating feature is going to be a huge time-saver for the maintainers of our application. We have large volumes of time series data that get updated frequently. My updater is configured using an XML file with a section for each dataset. The updater scans the data directories once per minute, and adds a store and layer for any new data files that it finds. Currently, the updater relies on our file-naming convention to pull temporal information from the file name. But, this could be generalized by putting regexes in the XML configuration file. Might this make a good community module? Thanks! Greg ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
