logic: fix issue where Maven project did not show any source files (issue #428)

* fixed extraction of generated effective-pom from command line output
This commit is contained in:
malte_langkabel
2017-07-26 14:41:15 +02:00
parent 3a192c8089
commit 3f19a0393a
2 changed files with 48 additions and 14 deletions
+11 -3
View File
@@ -2,6 +2,8 @@
#include "tinyxml/tinyxml.h"
#include "utility/logging/logging.h"
namespace utility
{
@@ -54,13 +56,19 @@ namespace utility
}
else
{
// LOG_ERROR("Unable to load file.");
if (doc.Error())
{
LOG_ERROR(std::string("Error while parsing XML: ") + doc.ErrorDesc() + " (in line " + std::to_string(doc.ErrorRow()) + ": \"" + textAccess->getLine(doc.ErrorRow()) + "\")");
}
else
{
LOG_ERROR("Unable to load file.");
}
}
return values;
}
std::vector<std::string> getValuesOfAllXmlTagsByName(std::shared_ptr<TextAccess> textAccess, const std::string& tag)
{
std::vector<std::string> values;