Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/UedauernPropertiesHelper.java @ 9469:6acd22e86951
Improvements on Config-Files
author | gernotbelger |
---|---|
date | Tue, 04 Sep 2018 16:42:03 +0200 |
parents | 810f47bba83e |
children |
comparison
equal
deleted
inserted
replaced
9468:c01f1e65903b | 9469:6acd22e86951 |
---|---|
50 private String getRivername() { | 50 private String getRivername() { |
51 return this.rivername; | 51 return this.rivername; |
52 } | 52 } |
53 | 53 |
54 private static final String makeFileName(final String river) { | 54 private static final String makeFileName(final String river) { |
55 return "uinfo_uedauern_aue_" + river + ".properties"; | 55 return "wms_uedauern_" + river + ".properties"; |
56 } | 56 } |
57 | 57 |
58 public LinkedHashMap<String, String> getExtraLayers(final CallMeta meta) { | 58 public LinkedHashMap<String, String> getExtraLayers(final CallMeta meta) { |
59 final LinkedHashMap<String, String> entries = new LinkedHashMap<>(); | 59 final LinkedHashMap<String, String> entries = new LinkedHashMap<>(); |
60 | 60 |
69 } | 69 } |
70 | 70 |
71 private Properties getProperties() { | 71 private Properties getProperties() { |
72 if (this.properties == null) { | 72 if (this.properties == null) { |
73 try { | 73 try { |
74 this.properties = Config.loadProperties(this.CONFIG_FILE); | 74 this.properties = Config.loadProperties(this.CONFIG_FILE, Config.getModulesConfigDirectory()); |
75 } | 75 } |
76 catch (final IOException e) { | 76 catch (final IOException e) { |
77 e.printStackTrace(); | 77 e.printStackTrace(); |
78 } | 78 } |
79 } | 79 } |
117 return yearUrl; | 117 return yearUrl; |
118 } | 118 } |
119 | 119 |
120 public static boolean fileExistsForRiver(final String river) { | 120 public static boolean fileExistsForRiver(final String river) { |
121 try { | 121 try { |
122 Config.loadProperties(makeFileName(river)); | 122 Config.loadProperties(makeFileName(river), Config.getModulesConfigDirectory()); |
123 return true; | 123 return true; |
124 } | 124 } |
125 catch (final IOException e) { | 125 catch (final IOException e) { |
126 e.printStackTrace(); | 126 e.printStackTrace(); |
127 return false; | 127 return false; |