[Dive4elements-commits] [PATCH 04 of 10] ImportRiver: Bail out if skip* parameters were given

Wald Commits scm-commit at wald.intevation.org
Tue Jan 8 16:53:58 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1357644389 -3600
# Node ID e77b461fa360457a7b00d549acca34e4bd0bdc73
# Parent  562f631aab86f0b8086bafc88f74c0aafbc6ff58
ImportRiver: Bail out if skip* parameters were given.

diff -r 562f631aab86 -r e77b461fa360 flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Tue Jan 08 12:25:51 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Tue Jan 08 12:26:29 2013 +0100
@@ -954,6 +954,7 @@
     public void parseW80s() {
         if (Config.INSTANCE.skipW80s()) {
             log.info("skip parsing W80s");
+            return;
         }
         W80Parser parser = new W80Parser();
         File riverDir = wstFile
@@ -969,6 +970,7 @@
     public void parseDA50s() {
         if (Config.INSTANCE.skipDA50s()) {
             log.info("skip parsing DA50s");
+            return;
         }
         else log.warn("DA50 parsing not yet implemented");
     }


More information about the Dive4elements-commits mailing list