Class DirectoryPackagesPropsParser
- java.lang.Object
-
- org.owasp.dependencycheck.data.nuget.DirectoryPackagesPropsParser
-
public class DirectoryPackagesPropsParser extends java.lang.ObjectParses a nuget's Directory.Packages.props file using XPath.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description DirectoryPackagesPropsParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>parse(java.io.InputStream stream, java.util.Properties props)Parses the given stream for Directory.Packages.props elements.
-
-
-
Method Detail
-
parse
public java.util.Map<java.lang.String,java.lang.String> parse(java.io.InputStream stream, java.util.Properties props) throws MSBuildProjectParseExceptionParses 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
-
-