diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-02-28 13:59:29 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-02-28 13:59:29 +0100 |
commit | b9e6751d60d4415dfabc986ee444e079bcac17c3 (patch) | |
tree | 27047588a3eacce2e20d4d69901a772baf57e198 /id/ConfigWebTool/src/main | |
parent | 9d01327960b0531da64ae3ffd1b39592830dd425 (diff) | |
download | moa-id-spss-b9e6751d60d4415dfabc986ee444e079bcac17c3.tar.gz moa-id-spss-b9e6751d60d4415dfabc986ee444e079bcac17c3.tar.bz2 moa-id-spss-b9e6751d60d4415dfabc986ee444e079bcac17c3.zip |
activate postgresql solution as default for unofficial moa-id-3.3.2_postgresql releasemoa-id-3.3.2_postgresql
Diffstat (limited to 'id/ConfigWebTool/src/main')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java index abde2089d..1ca5bcc2c 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/ConfigurationProvider.java @@ -138,6 +138,13 @@ public class ConfigurationProvider { fis = new FileInputStream(propertiesFile); props.load(fis); fis.close(); + + //Workaround -> can be removed in next version + if (MiscUtil.isEmpty(System.getProperty("spring.profiles.active"))) { + log.info("Set System-Property to activate 'byteBased' config values"); + System.setProperty("spring.profiles.active", "byteBasedConfig"); + + } //initialize generic SpringContext to set profiles GenericApplicationContext rootContext = new GenericApplicationContext(); |