diff flys-aft/src/main/java/de/intevation/aft/Sync.java @ 4090:d556e29592f5

Create new discharge tables if needed. flys-aft/trunk@3590 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 04 Jan 2012 17:59:26 +0000
parents 859b4781554a
children b20b710aa86f
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/aft/Sync.java	Tue Jan 03 12:25:06 2012 +0000
+++ b/flys-aft/src/main/java/de/intevation/aft/Sync.java	Wed Jan 04 17:59:26 2012 +0000
@@ -83,7 +83,8 @@
                 }
             }
         }
- 
+
+        int exitCode = 0;
 
         ConnectionBuilder aftConnectionBuilder =
             new ConnectionBuilder(AFT, config);
@@ -103,12 +104,17 @@
         }
         catch (SQLException sqle) {
             log.error("syncing failed", sqle);
+            exitCode = 1;
         }
         finally {
             if (syncContext != null) {
                 syncContext.close();
             }
         }
+
+        if (exitCode != 0) {
+            System.exit(1);
+        }
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org