Class XPathMSBuildProjectParser
java.lang.Object
org.owasp.dependencycheck.data.nuget.XPathMSBuildProjectParser
Parses a MSBuild project file for NuGet references using XPath.
- Author:
- paulirwin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(InputStream stream, Properties props, Map<String, String> centrallyManaged) Parses the given stream for MSBuild PackageReference elements.
-
Constructor Details
-
XPathMSBuildProjectParser
public XPathMSBuildProjectParser()
-
-
Method Details
-
parse
public List<NugetPackageReference> parse(InputStream stream, Properties props, Map<String, String> centrallyManaged) throws MSBuildProjectParseExceptionParses 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
-