diff --git a/src/main/resources/templates/XmlReport.vsl b/src/main/resources/templates/XmlReport.vsl new file mode 100644 index 000000000..142038b18 --- /dev/null +++ b/src/main/resources/templates/XmlReport.vsl @@ -0,0 +1,121 @@ +#** +This file is part of DependencyCheck. + +DependencyCheck is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +DependencyCheck is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with DependencyCheck. If not, see http://www.gnu.org/licenses/. + +Copyright (c) 2012 Jeremy Long. All Rights Reserved. + +@author Jeremy Long +@version 1 +*# + + + + $esc.html($applicationName) + $date + + + #foreach($dependency in $dependencies) + + $esc.html($dependency.FileName) + $esc.html($dependency.FilePath) + $esc.html($dependency.Md5sum) + $esc.html($dependency.Sha1sum) + #if ($dependency.description) + $esc.html($dependency.description) + #end + #if ($dependency.license) + $esc.html($dependency.license) + #end + #if ( $dependency.analysisExceptions.size() != 0 ) + + #foreach($ex in $dependency.analysisExceptions) + + $esc.html($ex.message) + #if ( $ex.stackTrace ) + + #foreach ($st in $ex.stackTrace) + $esc.html($st) + #end + + #end + + #if ( $ex.cause ) + + $esc.html($ex.cause.message) + #if ( $ex.cause.stackTrace ) + + #foreach ($st in $ex.cause.stackTrace) + $esc.html($st) + #end + + #end + + #end + + #end + + #end + + #foreach($evidence in $dependency.getEvidenceUsed()) + + $esc.html($evidence.getSource()) + $esc.html($evidence.getName()) + $esc.html($evidence.getValue()) + + #end + + + #foreach($id in $dependency.getIdentifiers()) + + $esc.html($id.value) + $esc.html($id.url) + #if( $id.descrription ) + $esc.html($id.description)> + #end + + #end + + + #foreach($vuln in $dependency.getVulnerabilities()) + + $esc.html($vuln.name) + $vuln.cvssScore + #if ($vuln.cvssScore<4.0) + Low + #elseif ($vuln.cvssScore>=7.0) + High + #else + Medium + #end + #if ($vuln.cwe) + $esc.html($vuln.cwe) + #end + $esc.html($vuln.description) + + #foreach($ref in $vuln.getReferences()) + + $esc.html($ref.source) + $esc.html($ref.url) + $ref.name + + #end + + + #end + + #end + + + \ No newline at end of file