Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/WMSDBArtifact.java @ 9751:308a0d822d18 3.2.x
Keep configuration and data in distinct directories
This allows having distinct volumes for configuration and data
(artifact database, generated mapfiles and shapefiles, etc.).
While at it, cleanup MapServer configuration a little bit.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 11 Oct 2022 11:42:09 +0200 |
parents | 0a5239a1e46e |
children |
comparison
equal
deleted
inserted
replaced
9750:432934cda171 | 9751:308a0d822d18 |
---|---|
239 @Override | 239 @Override |
240 public void endOfLife(Artifact owner, Object context) { | 240 public void endOfLife(Artifact owner, Object context) { |
241 log.info("Destroy WMSDBState: " + getID()); | 241 log.info("Destroy WMSDBState: " + getID()); |
242 | 242 |
243 String p = RiverUtils.getXPathString( | 243 String p = RiverUtils.getXPathString( |
244 RiverUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); | 244 RiverUtils.XPATH_MAPFILES_PATH); |
245 File dir = new File(p, owner.identifier()); | 245 File dir = new File(p, owner.identifier()); |
246 | 246 |
247 if (dir != null && dir.exists()) { | 247 if (dir != null && dir.exists()) { |
248 log.debug("Try to delete directory '" + dir + "'"); | 248 log.debug("Try to delete directory '" + dir + "'"); |
249 | 249 |