You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "benson margulies (JIRA)" <ji...@codehaus.org> on 2009/05/24 00:10:42 UTC

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

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

        

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

Posted by "benson margulies (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=177809#action_177809 ] 

benson margulies commented on MNG-4171:
---------------------------------------

I didn't mean to mark this 'major', and this copy of JIRA doesn't let authors fix their errors of this sort.

> 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

        

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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ 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

        

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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Fix Version/s: 3.x

> 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
>             Fix For: 3.x
>
>
> 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