Class DirectoryBuildPropsParser

java.lang.Object
org.owasp.dependencycheck.data.nuget.DirectoryBuildPropsParser

public class DirectoryBuildPropsParser extends Object
Parses `Directory.Build.props`.
Author:
Jeremy Long
See Also:
  • Constructor Details

    • DirectoryBuildPropsParser

      public DirectoryBuildPropsParser()
  • Method Details

    • getImports

      public Set<String> getImports()
      Returns the imports identified during parsing.
      Returns:
      the imports identified during parsing.
    • parse

      public Map<String,String> parse(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.