comparison backend/src/main/java/org/dive4elements/river/importer/ImportRiver.java @ 6337:224d7c4b5291

Backend: Create ImportWsts for official lines expicitly. They are going to be somewhat special. Removed some cruft from the WstParser.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 14 Jun 2013 16:11:49 +0200
parents b2a470c148a7
children aef238fdd9b6
comparison
equal deleted inserted replaced
6336:c4fbd85a33ee 6337:224d7c4b5291
790 log.warn("no official lines wst file found"); 790 log.warn("no official lines wst file found");
791 continue; 791 continue;
792 } 792 }
793 log.debug("Found WST file: " + file); 793 log.debug("Found WST file: " + file);
794 794
795 WstParser wstParser = new WstParser(); 795 ImportWst iw = new ImportWst();
796
797 WstParser wstParser = new WstParser(iw);
796 wstParser.parse(file); 798 wstParser.parse(file);
797 ImportWst iw = wstParser.getWst();
798 iw.setKind(3); 799 iw.setKind(3);
799 iw.setDescription(folder + "/" + iw.getDescription()); 800 iw.setDescription(folder + "/" + iw.getDescription());
800 801
801 File configFile = FileTools.repair(new File(dir, OFFICIAL_LINES_CONFIG)); 802 File configFile = FileTools.repair(new File(dir, OFFICIAL_LINES_CONFIG));
802 if (!configFile.isFile() || !configFile.canRead()) { 803 if (!configFile.isFile() || !configFile.canRead()) {

http://dive4elements.wald.intevation.org