You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2010/01/14 17:00:57 UTC

[jira] Updated: (MNG-4171) The XML resulting from a property of java.util.Properties is a lot more clumsy than that for Map

     [ http://jira.codehaus.org/browse/MNG-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-4171:
------------------------------

    Fix Version/s:     (was: 3.x (to be reviewed))
                   3.1

this is done by Plexus, so might need to be considered when converting to Guice

> 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 & 3
>          Issue Type: Improvement
>          Components: Plugin API
>    Affects Versions: 2.1.0
>            Reporter: Benson Margulies
>             Fix For: 3.1
>
>
> 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