mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 23:56:54 +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:
|
protected:
|
||||||
void initialize(Poco::Util::Application& self)
|
void initialize(Poco::Util::Application& self)
|
||||||
{
|
{
|
||||||
|
#ifdef POCO_OS_FAMILY_UNIX
|
||||||
std::string pocoBase(Poco::Environment::get("POCO_BASE"));
|
std::string pocoBase(Poco::Environment::get("POCO_BASE"));
|
||||||
if (pocoBase.empty())
|
if (pocoBase.empty())
|
||||||
throw Poco::LogicException("POCO_BASE should be defined");
|
throw Poco::LogicException("POCO_BASE should be defined");
|
||||||
@@ -64,6 +65,9 @@ protected:
|
|||||||
configPath.setFileName("TestSuite.xml");
|
configPath.setFileName("TestSuite.xml");
|
||||||
|
|
||||||
loadConfiguration(configPath.toString());
|
loadConfiguration(configPath.toString());
|
||||||
|
#else
|
||||||
|
loadConfiguration();
|
||||||
|
#endif
|
||||||
Poco::Util::Application::initialize(self);
|
Poco::Util::Application::initialize(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user