Allow to condense configuation of plugin parameter beans that commonly require 
only one value
---------------------------------------------------------------------------------------------

                 Key: MNG-5013
                 URL: http://jira.codehaus.org/browse/MNG-5013
             Project: Maven 2 & 3
          Issue Type: Improvement
          Components: Plugins and Lifecycle, POM
    Affects Versions: 3.0.2
            Reporter: Benjamin Bentmann
            Priority: Minor


Let's take this example configuration snippet:
{code:xml}
<resources>
  <resource>
    <directory>src/foo</directory>
    <filtering>true</filtering>
  </resource>
  <resource>src/bar</resource>
</resources>
{code}
Apparently, the last {{<resource>}} element is meant as a shorthand form for 
{{<resource><directory>src/bar</directory></resource>}}.

Not only does support for this notation save users a few bits of (sometimes 
hated) XML but it also provides plugin authors with a smooth upgrade path say 
when a parameter was initially typed as {{File[]}} but later needs to be 
extended into {{Bean[]}}.


-- 
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