Class DirectoryPackagesPropsParser
java.lang.Object
org.owasp.dependencycheck.data.nuget.DirectoryPackagesPropsParser
Parses a nuget's Directory.Packages.props file using XPath.
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(InputStream stream, Properties props) Parses the given stream for Directory.Packages.props elements.
-
Constructor Details
-
DirectoryPackagesPropsParser
public DirectoryPackagesPropsParser()
-
-
Method Details
-
parse
public Map<String,String> parse(InputStream stream, Properties props) throws MSBuildProjectParseException Parses the given stream for Directory.Packages.props elements.- Parameters:
stream- the input stream to parseprops- the Directory.Build.props properties- Returns:
- a collection of discovered NuGet package references
- Throws:
MSBuildProjectParseException- if an exception occurs
-