xml-parser: don't clear list of included files in each dir 15/230315/2
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 9 Apr 2020 08:01:48 +0000 (10:01 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Thu, 9 Apr 2020 08:53:58 +0000 (10:53 +0200)
The 'includedir' directives should make the parser include all
the files in the directories introduced with the directives.

This commit removes clearing of the gathered file list when
the directive is encountered.

Change-Id: Id14be322e8696bd85ddfbb0ba2360a7b4b5bcda4

src/internal/xml_parser.cpp

index dba29ff..4bcbb1d 100644 (file)
@@ -284,7 +284,7 @@ void XmlParser::getIncludedFiles(const std::string& parent_dir, const std::strin
        DIR *dir;
        struct dirent *ent;
        const std::string dname = expandPath(parent_dir, incldir);
-       files.clear();
+
        if ((dir = opendir(dname.c_str())) != NULL) {
                while ((ent = readdir(dir)) != NULL) {
                        std::string s(ent->d_name);