system/core
Revisão | ca11f4699ce3799cde02b456895ef31017978025 (tree) |
---|---|
Hora | 2019-06-18 07:56:11 |
Autor | Dongcheol Shin <dc.shin@lge....> |
Commiter | android-build-merger |
Merge "Support importing property file with expanded name" into qt-dev
am: fa94b8f96b
Change-Id: Iff4adad019e0f919536d1cce0ed55d536ea65e4e
@@ -642,8 +642,14 @@ static void LoadProperties(char* data, const char* filter, const char* filename, | ||
642 | 642 | while (isspace(*key)) key++; |
643 | 643 | } |
644 | 644 | |
645 | - load_properties_from_file(fn, key, properties); | |
645 | + std::string raw_filename(fn); | |
646 | + std::string expanded_filename; | |
647 | + if (!expand_props(raw_filename, &expanded_filename)) { | |
648 | + LOG(ERROR) << "Could not expand filename '" << raw_filename << "'"; | |
649 | + continue; | |
650 | + } | |
646 | 651 | |
652 | + load_properties_from_file(expanded_filename.c_str(), key, properties); | |
647 | 653 | } else { |
648 | 654 | value = strchr(key, '='); |
649 | 655 | if (!value) continue; |