Class DirectoryBuildPropsParser


  • public class DirectoryBuildPropsParser
    extends java.lang.Object
    Parses `Directory.Build.props`.
    Author:
    Jeremy Long
    See Also:
    Directory.Build.props
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DirectoryBuildPropsParser

        public DirectoryBuildPropsParser()
    • 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.