I'm trying the following:
- Code: Select all
void initialize(Application& self)
{
std::string newConfig = config().getString("application.dir");
newConfig+="../";
newConfig+=config().getString("application.name");
newConfig+=".properties";
std::cout << "NewConfig: " << newConfig << std::endl;
loadConfiguration(newConfig); // load configuration file, if present
std::cout << "application.configDir: " << config().getString("application.configDir") << std::endl;
ServerApplication::initialize(self);
}
According to the docu of class Application I would not expect the following output:
- Code: Select all
newConfig: /home/ce/eclipse-workspace/daqenginesrv/Debug/../daqenginesrv.properties
application.configDir: /home/ce/eclipse-workspace/daqenginesrv/Debug/
However I would expect, that newConfig==application.configDir
Do I misunderstand the docu or do I something wrong here?
Thanks
Hans





