aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2017-01-04 23:09:46 +0100
committerIngo Bauersachs <ingo@jitsi.org>2017-01-04 23:09:46 +0100
commit01bccdea45cdf07d5bbbc9c4e9f4073e88aee024 (patch)
tree93edf0ba7bf8940129d14e205a3b4e35e2a9250a /src
parentecf3954dd7f738e6f828da861788d9b3760b8468 (diff)
downloadjitsi-01bccdea45cdf07d5bbbc9c4e9f4073e88aee024.zip
jitsi-01bccdea45cdf07d5bbbc9c4e9f4073e88aee024.tar.gz
jitsi-01bccdea45cdf07d5bbbc9c4e9f4073e88aee024.tar.bz2
Switch to database based configuration by default
The properties file based configuration can be re-enabled by creating an empty text file named .usepropfileconfig in Jitsi's configuration directory (~/.jitsi, %appdata%\Jitsi)
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java b/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java
index 1553658..a019c13 100644
--- a/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java
+++ b/src/net/java/sip/communicator/impl/configuration/ConfigurationActivator.java
@@ -64,39 +64,38 @@ public class ConfigurationActivator
if (fas != null)
{
- File useDatabaseConfig;
-
+ File usePropFileConfig;
try
{
- useDatabaseConfig
+ usePropFileConfig
= fas.getPrivatePersistentFile(
- ".usedatabaseconfig",
+ ".usepropfileconfig",
FileCategory.PROFILE);
}
catch (Exception ise)
{
-
// There is somewhat of a chicken-and-egg dependency between
// FileConfigurationServiceImpl and ConfigurationServiceImpl:
// FileConfigurationServiceImpl throws IllegalStateException if
// certain System properties are not set,
// ConfigurationServiceImpl will make sure that these properties
- //are set but it will do that later.
+ // are set but it will do that later.
// A SecurityException is thrown when the destination
// is not writable or we do not have access to that folder
- useDatabaseConfig = null;
+ usePropFileConfig = null;
}
- // BETA: if the marker file exists, use the database configuration
- if ((useDatabaseConfig != null) && useDatabaseConfig.exists())
+ if (usePropFileConfig != null && usePropFileConfig.exists())
{
- logger.info("Using database configuration store.");
- this.cs = new JdbcConfigService(fas);
+ logger.info("Using properties file configuration store.");
+ this.cs = LibJitsi.getConfigurationService();
}
}
if (this.cs == null)
- this.cs = LibJitsi.getConfigurationService();
+ {
+ this.cs = new JdbcConfigService(fas);
+ }
bundleContext.registerService(
ConfigurationService.class.getName(),