[Fix] Fixed RuntimeConfiguration.getConfigFile()

This commit is contained in:
Robert von Burg 2017-09-20 17:40:34 +02:00
parent 80a1e4af62
commit 060692a5c1
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class RuntimeConfiguration extends AbstractionConfiguration {
* @return the file in the config directory of the root of the application
*/
public File getConfigFile(String context, String fileName, boolean checkExists) {
File configFile = new File(getDataPath(), fileName);
File configFile = new File(getConfigPath(), fileName);
if (checkExists && (!configFile.isFile() || !configFile.canRead())) {
String msg = "[{0}] requires config file which does not exist with name: {1}"; //$NON-NLS-1$
msg = MessageFormat.format(msg, getName(), context, fileName);