From: Woongsuk Cho Date: Wed, 29 Jun 2022 05:36:17 +0000 (+0900) Subject: Change --ni-dir option operation X-Git-Tag: submit/tizen/20220825.083931~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cefb9581cc7982f9ad4eacccaf9a64eb0243e8be;p=platform%2Fcore%2Fdotnet%2Flauncher.git Change --ni-dir option operation if the --inputbubble option and --ni-dir option used together, all input directories must be processed as one bubble. For this requirements, change implementation of --ni-dir option. --- diff --git a/NativeLauncher/tool/dotnettool.cc b/NativeLauncher/tool/dotnettool.cc index e145699..8c10ce4 100644 --- a/NativeLauncher/tool/dotnettool.cc +++ b/NativeLauncher/tool/dotnettool.cc @@ -250,15 +250,17 @@ int main(int argc, char* argv[]) if (args.size() < 1) { _SERR("Directory path is missing"); } + std::string dir; while (it != args.end()) { - const std::string dir = std::string(*it); - int ret = createNIUnderDirs(dir, opt); - if (ret != NI_ERROR_NONE) { - _SERR("Failed to generate NI directory"); - break; + if (!dir.empty()) { + dir += std::string(":"); } + dir += std::string(*it); it = args.erase(it); } + if (createNIUnderDirs(dir, opt) != NI_ERROR_NONE) { + _SERR("Failed to generate NI directory"); + } } //sh-3.2# dotnettool --ni-reset-system else if (cmd == "--ni-reset-system") {