diff 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
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/UedauernPropertiesHelper.java	Fri Aug 31 17:11:32 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/uinfo/inundationduration/UedauernPropertiesHelper.java	Tue Sep 04 16:42:03 2018 +0200
@@ -52,7 +52,7 @@
     }
 
     private static final String makeFileName(final String river) {
-        return "uinfo_uedauern_aue_" + river + ".properties";
+        return "wms_uedauern_" + river + ".properties";
     }
 
     public LinkedHashMap<String, String> getExtraLayers(final CallMeta meta) {
@@ -71,7 +71,7 @@
     private Properties getProperties() {
         if (this.properties == null) {
             try {
-                this.properties = Config.loadProperties(this.CONFIG_FILE);
+                this.properties = Config.loadProperties(this.CONFIG_FILE, Config.getModulesConfigDirectory());
             }
             catch (final IOException e) {
                 e.printStackTrace();
@@ -119,7 +119,7 @@
 
     public static boolean fileExistsForRiver(final String river) {
         try {
-            Config.loadProperties(makeFileName(river));
+            Config.loadProperties(makeFileName(river), Config.getModulesConfigDirectory());
             return true;
         }
         catch (final IOException e) {

http://dive4elements.wald.intevation.org