Commit 4e5d4e69eec8e92e85bdd5c1f0dd825c1f7ecc97

Authored by Benjamin Renard
1 parent aae52524

Skip plugin load with parser

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  
... ...
src/expressionParser/Main.cc
... ... @@ -148,6 +148,6 @@ int main(int argc, char *argv[]) {
148 148 }
149 149  
150 150 return result;
151   - });
  151 + }, true); //Skip plugin load
152 152 }
153 153  
... ...