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

                 Key: MNG-4171
                 URL: http://jira.codehaus.org/browse/MNG-4171
             Project: Maven 2
          Issue Type: Improvement
          Components: Plugin API
    Affects Versions: 2.1.0
            Reporter: benson margulies


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.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to