Added support for comparison of scans

This commit is contained in:
Šesták Vít
2017-12-08 10:18:25 +01:00
parent 2e21f78105
commit 39ba123efc
5 changed files with 45 additions and 4 deletions

View File

@@ -387,8 +387,10 @@ object OdcParser {
def parseDependencies(nodes: NodeSeq): Seq[Dependency] = nodes.map(parseDependency(_))
def parseXmlReport(data: Array[Byte]) = {
val xml = SecureXml.loadString(new String(data, "utf-8"))
def parseXmlReport(data: Array[Byte]): Analysis = parseXmlReport(new String(data, "utf-8"))
def parseXmlReport(xmlData: String): Analysis = {
val xml = SecureXml.loadString(xmlData)
Analysis(
scanInfo = SerializableXml((xml \ "scanInfo").head),
name = (xml \ "projectInfo" \ "name").text,