You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alex Eagle (JIRA)" <ji...@codehaus.org> on 2009/02/24 01:27:19 UTC
[jira] Created: (MPLUGINTESTING-7) parameters annotated with
default-value are not injected
parameters annotated with default-value are not injected
--------------------------------------------------------
Key: MPLUGINTESTING-7
URL: http://jira.codehaus.org/browse/MPLUGINTESTING-7
Project: Maven 2.x Plugin Testing
Issue Type: Bug
Components: plugin-testing-harness
Affects Versions: 1.1
Reporter: Alex Eagle
I have a Mojo with several parameters annotated with a default-value:
/**
* Colon-delimited packages to whitelist
*
* @parameter default-value=""
*/
private String whiteList;
But when I lookupMojo() my mojo in an AbstractMojoTestCase, I get a mojo with a null value in whiteList.
shouldn't I get an empty string instead?
Thanks!
--
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: (MPLUGINTESTING-7) parameters annotated with
default-value are not injected
Posted by "Francis De Brabandere (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MPLUGINTESTING-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246578#action_246578 ]
Francis De Brabandere commented on MPLUGINTESTING-7:
----------------------------------------------------
I have been looking around at some source code and a lot of people seem to have encountered this annoying issue.
> parameters annotated with default-value are not injected
> --------------------------------------------------------
>
> Key: MPLUGINTESTING-7
> URL: http://jira.codehaus.org/browse/MPLUGINTESTING-7
> Project: Maven 2.x Plugin Testing
> Issue Type: Bug
> Components: plugin-testing-harness
> Affects Versions: 1.1
> Reporter: Alex Eagle
>
> I have a Mojo with several parameters annotated with a default-value:
> /**
> * Colon-delimited packages to whitelist
> *
> * @parameter default-value=""
> */
> private String whiteList;
> But when I lookupMojo() my mojo in an AbstractMojoTestCase, I get a mojo with a null value in whiteList.
> shouldn't I get an empty string instead?
> Thanks!
--
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