Class XPathMSBuildProjectParser
- java.lang.Object
- 
- org.owasp.dependencycheck.data.nuget.XPathMSBuildProjectParser
 
- 
 public class XPathMSBuildProjectParser extends java.lang.ObjectParses a MSBuild project file for NuGet references using XPath.- Author:
- paulirwin
 
- 
- 
Constructor SummaryConstructors Constructor Description XPathMSBuildProjectParser()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NugetPackageReference>parse(java.io.InputStream stream, java.util.Properties props, java.util.Map<java.lang.String,java.lang.String> centrallyManaged)Parses the given stream for MSBuild PackageReference elements.
 
- 
- 
- 
Method Detail- 
parsepublic java.util.List<NugetPackageReference> parse(java.io.InputStream stream, java.util.Properties props, java.util.Map<java.lang.String,java.lang.String> centrallyManaged) throws MSBuildProjectParseException Parses the given stream for MSBuild PackageReference elements.- Parameters:
- stream- the input stream to parse
- props- the Directory.Build.props properties
- centrallyManaged- a map of centrally managed package references
- Returns:
- a collection of discovered NuGet package references
- Throws:
- MSBuildProjectParseException- if an exception occurs
 
 
- 
 
-