You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ittay Dror (JIRA)" <ji...@codehaus.org> on 2008/05/15 14:23:27 UTC
[jira] Closed: (MNG-3577) bug in PluginParameterExpressionEvaluator
when using '${plugin.something}
[ http://jira.codehaus.org/browse/MNG-3577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ittay Dror closed MNG-3577.
---------------------------
Resolution: Not A Bug
my mistake, the code removes the first substring until the '.'. not sure why 'substring' is needed, but, well.
> bug in PluginParameterExpressionEvaluator when using '${plugin.something}
> -------------------------------------------------------------------------
>
> Key: MNG-3577
> URL: http://jira.codehaus.org/browse/MNG-3577
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 2.0.8
> Reporter: Ittay Dror
>
> when expression is 'plugin.something', this is the code that evaluates it:
> value = ReflectionValueExtractor.evaluate( expression.substring( 1 ), pluginDescriptor );
> so the extractor sees 'lugin.something', which obviously won't work.
> also, it returns 'null'. i think it would be better if evaluation of unfound expressions will just leave them as they are (so evaluating ${foo} will leave it as '${foo}').
--
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