Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/Importer.java @ 2804:68d1661a57cf
Added a new config option to specify a INFO.gew file by system property.
flys-backend/trunk@4182 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 29 Mar 2012 07:24:15 +0000 |
parents | 268f8da412e3 |
children | 33f40b23edd8 |
comparison
equal
deleted
inserted
replaced
2803:cdc084071c14 | 2804:68d1661a57cf |
---|---|
123 catch (IOException ioe) { | 123 catch (IOException ioe) { |
124 log.error("cannot while parsing: " + gew); | 124 log.error("cannot while parsing: " + gew); |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 String gew = Config.INSTANCE.getInfoGewFile(); | |
129 if (gew != null && gew.length() > 0) { | |
130 log.info("parsing info gew file: " + gew); | |
131 try { | |
132 infoGewParser.parse(new File(gew)); | |
133 } | |
134 catch (IOException ioe) { | |
135 log.error("cannot parse file: " + gew); | |
136 } | |
137 } | |
138 | |
128 if (!Config.INSTANCE.dryRun()) { | 139 if (!Config.INSTANCE.dryRun()) { |
129 new Importer(infoGewParser.getRivers()).writeToDatabase(); | 140 new Importer(infoGewParser.getRivers()).writeToDatabase(); |
130 } | 141 } |
131 } | 142 } |
132 } | 143 } |