You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by pjungwir <ma...@9stmaryrd.com> on 2006/10/13 16:47:51 UTC

lists & arrays as plugin parameters

Hello,

I'm writing a plugin, and I would like to accept configuration xml like
this:

<someOption>
<anotherOption>
<var>
<var>
<var>
... [more <var>s] ...

Is this possible without wrapping the <var> tags inside a container like
<vars>? In the docs, all the examples have a wrapper tag for lists and
arrays.

I know I can just get the full xml and query it, but is there an easier way?
I'd like to keep a "private String[] vars" with javadoc so when maven builds
the documentation, it is included.

Thanks,
Paul

-- 
View this message in context: http://www.nabble.com/lists---arrays-as-plugin-parameters-tf2437539.html#a6797048
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: lists & arrays as plugin parameters

Posted by Dan Tran <da...@gmail.com>.
that is not possible, plugin configuration uses javabean reflection, so you
need to put your
vars in a collection container like list

-D


On 10/13/06, pjungwir <ma...@9stmaryrd.com> wrote:
>
>
> Hello,
>
> I'm writing a plugin, and I would like to accept configuration xml like
> this:
>
> <someOption>
> <anotherOption>
> <var>
> <var>
> <var>
> ... [more <var>s] ...
>
> Is this possible without wrapping the <var> tags inside a container like
> <vars>? In the docs, all the examples have a wrapper tag for lists and
> arrays.
>
> I know I can just get the full xml and query it, but is there an easier
> way?
> I'd like to keep a "private String[] vars" with javadoc so when maven
> builds
> the documentation, it is included.
>
> Thanks,
> Paul
>
> --
> View this message in context:
> http://www.nabble.com/lists---arrays-as-plugin-parameters-tf2437539.html#a6797048
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>