Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/ScenarioSelect.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 |
---|---|
123 * results of WSPLGEN are stored. Should be called in endOfLife(). | 123 * results of WSPLGEN are stored. Should be called in endOfLife(). |
124 */ | 124 */ |
125 // FIXME: I've seen this code somewhere else... | 125 // FIXME: I've seen this code somewhere else... |
126 protected void removeDirectory(D4EArtifact artifact) { | 126 protected void removeDirectory(D4EArtifact artifact) { |
127 String shapePath = RiverUtils.getXPathString( | 127 String shapePath = RiverUtils.getXPathString( |
128 RiverUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); | 128 RiverUtils.XPATH_MAPFILES_PATH); |
129 | 129 |
130 File artifactDir = new File(shapePath, artifact.identifier()); | 130 File artifactDir = new File(shapePath, artifact.identifier()); |
131 | 131 |
132 if (artifactDir.exists()) { | 132 if (artifactDir.exists()) { |
133 log.debug("Delete directory: " + artifactDir.getAbsolutePath()); | 133 log.debug("Delete directory: " + artifactDir.getAbsolutePath()); |