Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/PegelGltParser.java @ 7447:82b8bfb47260
Importer and doc: Warn instead of die if AT- or STA-file is missing for a gauge.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 25 Oct 2013 16:57:15 +0200 |
parents | 4c3ccf2b0304 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
7446:0917a5cd384b | 7447:82b8bfb47260 |
---|---|
95 log.debug("\tto: " + to); | 95 log.debug("\tto: " + to); |
96 log.debug("\tsta: " + staFile); | 96 log.debug("\tsta: " + staFile); |
97 log.debug("\tat: " + atFile); | 97 log.debug("\tat: " + atFile); |
98 } | 98 } |
99 | 99 |
100 gauges.add(new ImportGauge(range, staFile, atFile)); | 100 if (staFile.exists() && atFile.exists()) { |
101 gauges.add(new ImportGauge(range, staFile, atFile)); | |
102 } | |
103 else { | |
104 if (!staFile.exists()) { | |
105 log.warn(staFile + " does not exist. Gauge ignored."); | |
106 } | |
107 if (!atFile.exists()) { | |
108 log.warn(atFile + " does not exist. Gauge ignored."); | |
109 } | |
110 } | |
101 } | 111 } |
102 } | 112 } |
103 finally { | 113 finally { |
104 if (in != null) { | 114 if (in != null) { |
105 in.close(); | 115 in.close(); |