Class DirectoryPackagesPropsParser


  • public class DirectoryPackagesPropsParser
    extends java.lang.Object
    Parses a nuget's Directory.Packages.props file using XPath.
    Author:
    Jeremy Long
    • 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.
      • Methods inherited from class java.lang.Object

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

      • DirectoryPackagesPropsParser

        public DirectoryPackagesPropsParser()
    • Method Detail

      • parse

        public java.util.Map<java.lang.String,​java.lang.String> parse​(java.io.InputStream stream,
                                                                            java.util.Properties props)
                                                                     throws MSBuildProjectParseException
        Parses the given stream for Directory.Packages.props elements.
        Parameters:
        stream - the input stream to parse
        props - the Directory.Build.props properties
        Returns:
        a collection of discovered NuGet package references
        Throws:
        MSBuildProjectParseException - if an exception occurs