mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 19:25:53 +02:00
Use POCO_BASE for finding the configuration file on POCO_OS_FAMILY_UNIX
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
@@ -53,6 +53,7 @@ public:
|
||||
protected:
|
||||
void initialize(Poco::Util::Application& self)
|
||||
{
|
||||
#ifdef POCO_OS_FAMILY_UNIX
|
||||
std::string pocoBase(Poco::Environment::get("POCO_BASE"));
|
||||
if (pocoBase.empty())
|
||||
throw Poco::LogicException("POCO_BASE should be defined");
|
||||
@@ -64,6 +65,9 @@ protected:
|
||||
configPath.setFileName("TestSuite.xml");
|
||||
|
||||
loadConfiguration(configPath.toString());
|
||||
#else
|
||||
loadConfiguration();
|
||||
#endif
|
||||
Poco::Util::Application::initialize(self);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user