Skip to content
Snippets Groups Projects
Commit c783c65a authored by Emil Ivov's avatar Emil Ivov
Browse files

Makes it possible to override mutability of properties from the overrides file.

parent 2d37cbb1
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ public class ConfigurationServiceImpl
* for any of the default properties.
*/
private static final String DEFAULT_OVERRIDES_PROPS_FILE_NAME
= "jitsi-default-overrides.properties";
= "jitsi-default-overrides.properties";
/**
* A reference to the currently used configuration file.
......@@ -1587,11 +1587,19 @@ private void loadDefaultProperties(String fileName)
//it seems that we have a valid default immutable property
immutableDefaultProperties.put(name, value);
//in case this is an override, make sure we remove previous
//definitions of this property
defaultProperties.remove(name);
}
else
{
//this property is a regular, mutable default property.
defaultProperties.put(name, value);
//in case this is an override, make sure we remove previous
//definitions of this property
immutableDefaultProperties.remove(name);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment