maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (MNG-5033) Allow to inline collection/array items within plugin configuration
Date Thu, 03 Mar 2011 12:32:22 GMT

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

Benjamin Bentmann closed MNG-5033.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.3
         Assignee: Benjamin Bentmann

Done in [r1070102|http://svn.apache.org/viewvc?view=revision&revision=1070102]. Plugin
authors that wish to enable this kind of configuration can equip their parameter beans with
an adder like this:
{code:java}
public class Fileset
{

    private List<String> includes = new ArrayList<String>();

    public void addInclude( String include )
    {
        includes.add( include );
    }

    ...
}
{code}

> Allow to inline collection/array items within plugin configuration
> ------------------------------------------------------------------
>
>                 Key: MNG-5033
>                 URL: http://jira.codehaus.org/browse/MNG-5033
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: Plugins and Lifecycle
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 3.0.3
>
>
> The need to wrap collection/array elements into a container element is occasionally frustrating
to users (XML verbosity). Within plugin configuration, this can be achieved without a new
model format, e.g.
> {code:xml}
> <fileset>
>   <directory>src/demo</directory>
>   <include>Foo*</include>
>   <include>Bar*</include>
>   <exclude>*Bad</exclude>
> </fileset>
> {code}

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

        

Mime
View raw message