Class DirectoryBuildPropsParser
- java.lang.Object
-
- org.owasp.dependencycheck.data.nuget.DirectoryBuildPropsParser
-
public class DirectoryBuildPropsParser extends java.lang.Object
Parses `Directory.Build.props`.- Author:
- Jeremy Long
- See Also:
- Directory.Build.props
-
-
Constructor Summary
Constructors Constructor Description DirectoryBuildPropsParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getImports()
Returns the imports identified during parsing.java.util.Map<java.lang.String,java.lang.String>
parse(java.io.InputStream stream)
Parse the properties from the `Directory.Build.props` file InputStream.If any import nodes are found while parsing, the values will be available via `getImports()` after parsing is complete.
-
-
-
Method Detail
-
getImports
public java.util.Set<java.lang.String> getImports()
Returns the imports identified during parsing.- Returns:
- the imports identified during parsing.
-
parse
public java.util.Map<java.lang.String,java.lang.String> parse(java.io.InputStream stream) throws MSBuildProjectParseException
Parse the properties from the `Directory.Build.props` file InputStream.If any import nodes are found while parsing, the values will be available via `getImports()` after parsing is complete.- Parameters:
stream
- the input stream containing the props file to parse.- Returns:
- the properties.
- Throws:
MSBuildProjectParseException
- thrown if there is a parsing error.
-
-