Merge "Support importing property file with expanded name" am: 69880e1a39
am: c3967a111d
Change-Id: I59419d8087ca0d2f13685bf86e3c122ae61dc0ab
This commit is contained in:
commit
9b3ad8846b
1 changed files with 7 additions and 1 deletions
|
@ -645,8 +645,14 @@ static void LoadProperties(char* data, const char* filter, const char* filename,
|
|||
while (isspace(*key)) key++;
|
||||
}
|
||||
|
||||
load_properties_from_file(fn, key, properties);
|
||||
std::string raw_filename(fn);
|
||||
std::string expanded_filename;
|
||||
if (!expand_props(raw_filename, &expanded_filename)) {
|
||||
LOG(ERROR) << "Could not expand filename '" << raw_filename << "'";
|
||||
continue;
|
||||
}
|
||||
|
||||
load_properties_from_file(expanded_filename.c_str(), key, properties);
|
||||
} else {
|
||||
value = strchr(key, '=');
|
||||
if (!value) continue;
|
||||
|
|
Loading…
Reference in a new issue