You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/04/23 23:34:59 UTC

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

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

        

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

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3544:
------------------------------

    Fix Version/s: 2.0.x

> 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
>             Fix For: 2.0.x
>
>         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

        

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

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-3544.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s:     (was: 2.0.x)
                   3.0-alpha-1
                   2.1.0-M2
                   2.0.11

Fixed in [r720042|http://svn.eu.apache.org/viewvc?view=rev&revision=720042], [r720043|http://svn.eu.apache.org/viewvc?view=rev&revision=720043] and [r720045|http://svn.eu.apache.org/viewvc?view=rev&revision=720045].

> 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
>            Assignee: Benjamin Bentmann
>            Priority: Trivial
>             Fix For: 2.0.11, 2.1.0-M2, 3.0-alpha-1
>
>         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

        

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

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ 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