Class XPathMSBuildProjectParser
- java.lang.Object
-
- org.owasp.dependencycheck.data.nuget.XPathMSBuildProjectParser
-
public class XPathMSBuildProjectParser extends java.lang.Object
Parses a MSBuild project file for NuGet references using XPath.- Author:
- paulirwin
-
-
Constructor Summary
Constructors Constructor Description XPathMSBuildProjectParser()
-
Method Summary
All 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
-
parse
public 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 parseprops
- the Directory.Build.props propertiescentrallyManaged
- a map of centrally managed package references- Returns:
- a collection of discovered NuGet package references
- Throws:
MSBuildProjectParseException
- if an exception occurs
-
-