You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2008/04/24 15:06:46 UTC

[jira] Commented: (MNG-3544) Beautify debug output for mojo parameters of type array

    [ http://jira.codehaus.org/browse/MNG-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=132479#action_132479 ] 

Vincent Siveton commented on MNG-3544:
--------------------------------------

Sounds good to me. Go ahead!

> Beautify debug output for mojo parameters of type array
> -------------------------------------------------------
>
>                 Key: MNG-3544
>                 URL: http://jira.codehaus.org/browse/MNG-3544
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Logging
>    Affects Versions: 2.0.9
>            Reporter: Benjamin Bentmann
>            Priority: Trivial
>         Attachments: debug-mojo-array-params.patch
>
>
> Currently:
> {noformat}
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.2:jar' -->
> [DEBUG]   (f) excludes = [Ljava.lang.String;@c3c315
> [DEBUG] -- end configuration --
> {noformat}
> i.e. arrays won't show up nicely.
> The attached patch returns a string similar to the result of
> {code:java}
>   Arrays.asList( (Object[]) value ).toString()
> {code}
> but uses reflection to handle arrays of primitives as well.

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