[Fix] Fixed RuntimeConfiguration.getConfigFile()
This commit is contained in:
parent
80a1e4af62
commit
060692a5c1
|
@ -105,7 +105,7 @@ public class RuntimeConfiguration extends AbstractionConfiguration {
|
||||||
* @return the file in the config directory of the root of the application
|
* @return the file in the config directory of the root of the application
|
||||||
*/
|
*/
|
||||||
public File getConfigFile(String context, String fileName, boolean checkExists) {
|
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())) {
|
if (checkExists && (!configFile.isFile() || !configFile.canRead())) {
|
||||||
String msg = "[{0}] requires config file which does not exist with name: {1}"; //$NON-NLS-1$
|
String msg = "[{0}] requires config file which does not exist with name: {1}"; //$NON-NLS-1$
|
||||||
msg = MessageFormat.format(msg, getName(), context, fileName);
|
msg = MessageFormat.format(msg, getName(), context, fileName);
|
||||||
|
|
Loading…
Reference in New Issue