changeset 1776:7d1bd710a4b3

Made flys-artifacts compilable again. flys-artifacts/trunk@3098 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 28 Oct 2011 08:52:46 +0000
parents 0156105222c9
children a8aa343799a2
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/MapGenerator.java
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Oct 28 08:36:32 2011 +0000
+++ b/flys-artifacts/ChangeLog	Fri Oct 28 08:52:46 2011 +0000
@@ -1,3 +1,8 @@
+2011-10-28  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/MapGenerator.java: Bugfix:
+	  Catch IOException - flys-artifacts compiles again.
+
 2011-10-28  Ingo Weinzierl <ingo@intevation.de>
 
 	* doc/conf/artifacts/winfo.xml: Defined "floodmap.barriers" as valid facet
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/MapGenerator.java	Fri Oct 28 08:36:32 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/MapGenerator.java	Fri Oct 28 08:52:46 2011 +0000
@@ -114,8 +114,13 @@
 
 
     protected void createWSPLGENLayer(FLYSArtifact flys, WMSLayerFacet wms) {
-        MapfileGenerator mfg = MapfileGenerator.getInstance();
-        mfg.createUeskLayer(flys, wms);
+        try {
+            MapfileGenerator mfg = MapfileGenerator.getInstance();
+            mfg.createUeskLayer(flys, wms);
+        }
+        catch (IOException ioe) {
+            logger.error(ioe, ioe);
+        }
     }
 
 

http://dive4elements.wald.intevation.org