Commit 4e5d4e69eec8e92e85bdd5c1f0dd825c1f7ecc97
1 parent
aae52524
Exists in
master
and in
87 other branches
Skip plugin load with parser
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
src/Common/Application.cc
... | ... | @@ -67,7 +67,7 @@ namespace AMDA { |
67 | 67 | namespace Common { |
68 | 68 | |
69 | 69 | int Application::main(int argc, char *argv[], |
70 | - std::function<int(int argc, char *argv[], AMDA::helpers::Properties&)> exec) { | |
70 | + std::function<int(int argc, char *argv[], AMDA::helpers::Properties&)> exec, bool skipPluginLoad) { | |
71 | 71 | int result = AMDA_EXIT_OK; |
72 | 72 | |
73 | 73 | try { |
... | ... | @@ -99,7 +99,7 @@ namespace AMDA { |
99 | 99 | servicesServer->setConfigurator(configurator); |
100 | 100 | |
101 | 101 | std::string lPluginPath = lProperties["app.plugin"]; |
102 | - if (!lPluginPath.empty()) { | |
102 | + if (!lPluginPath.empty() && !skipPluginLoad) { | |
103 | 103 | AMDA::Plugins::PluginManager::getInstance()->loadPluginFromPath( |
104 | 104 | lPluginPath); |
105 | 105 | } | ... | ... |
src/Common/Application.hh
... | ... | @@ -17,7 +17,7 @@ namespace Common { |
17 | 17 | |
18 | 18 | class Application { |
19 | 19 | public: |
20 | - int main(int argc, char *argv[], std::function<int (int argc, char *argv[], AMDA::helpers::Properties&)> exec); | |
20 | + int main(int argc, char *argv[], std::function<int (int argc, char *argv[], AMDA::helpers::Properties&)> exec, bool skipPluginLoad = false); | |
21 | 21 | |
22 | 22 | }; |
23 | 23 | ... | ... |