comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/ScenarioSelect.java @ 5865:73da40528cf2

River artifacts: Renamed FLYSUtils to RiverUtils.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 28 Apr 2013 15:09:31 +0200
parents 4897a58c8746
children 59ff03ff48f1
comparison
equal deleted inserted replaced
5864:f2e46a668fe6 5865:73da40528cf2
15 import org.dive4elements.artifacts.common.utils.FileTools; 15 import org.dive4elements.artifacts.common.utils.FileTools;
16 import org.dive4elements.artifacts.common.utils.XMLUtils; 16 import org.dive4elements.artifacts.common.utils.XMLUtils;
17 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator; 17 import org.dive4elements.artifacts.common.utils.XMLUtils.ElementCreator;
18 import org.dive4elements.river.artifacts.FLYSArtifact; 18 import org.dive4elements.river.artifacts.FLYSArtifact;
19 import org.dive4elements.river.artifacts.resources.Resources; 19 import org.dive4elements.river.artifacts.resources.Resources;
20 import org.dive4elements.river.utils.FLYSUtils; 20 import org.dive4elements.river.utils.RiverUtils;
21 21
22 import java.io.File; 22 import java.io.File;
23 23
24 import org.apache.log4j.Logger; 24 import org.apache.log4j.Logger;
25 import org.w3c.dom.Element; 25 import org.w3c.dom.Element;
122 * Removes the directory and all its content where the required data and the 122 * Removes the directory and all its content where the required data and the
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(FLYSArtifact artifact) { 126 protected void removeDirectory(FLYSArtifact artifact) {
127 String shapePath = FLYSUtils.getXPathString( 127 String shapePath = RiverUtils.getXPathString(
128 FLYSUtils.XPATH_FLOODMAP_SHAPEFILE_DIR); 128 RiverUtils.XPATH_FLOODMAP_SHAPEFILE_DIR);
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 logger.debug("Delete directory: " + artifactDir.getAbsolutePath()); 133 logger.debug("Delete directory: " + artifactDir.getAbsolutePath());

http://dive4elements.wald.intevation.org