Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4171

The XML resulting from a property of java.util.Properties is a lot more clumsy than that for Map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1.0
    • None
    • Plugin API
    • None

    Description

      Map parameters have this convenient XML mapping

      <myPropName>
      <key>value</key>
      </myPropName>

      The corresponding syntax for Properties is much more verbose:

      <myPropName>
      <property><name>x</name><value>y</value</property>
      </myPropName>

      This seems like punishment to the plugin user. In my case, I am internally targetting an API that uses Properties, so it was really convenient to just declare at that type. However, the XML is so clumsy that I'm now going to go change it to a map and manually populate a Properties object. I wish that there was some @ to allow me to declare the variable as Properties and get the Map syntax.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              bmargulies Benson Margulies
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: