Maven
  1. Maven
  2. MNG-3544

Beautify debug output for mojo parameters of type array

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.9
    • Fix Version/s: 2.0.11, 2.1.0, 3.0-alpha-1
    • Component/s: Logging
    • Labels:
      None
    • Flags:
      Patch

      Description

      Currently:

      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.2:jar' -->
      [DEBUG]   (f) excludes = [Ljava.lang.String;@c3c315
      [DEBUG] -- end configuration --
      

      i.e. arrays won't show up nicely.

      The attached patch returns a string similar to the result of

        Arrays.asList( (Object[]) value ).toString()
      

      but uses reflection to handle arrays of primitives as well.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        213d 22h 47m 1 Benjamin Bentmann 23/Nov/08 15:21
        Mark Thomas made changes -
        Workflow jira [ 12950652 ] Default workflow, editable Closed status [ 12986893 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Flags Patch [ 10430 ]
        Patch Submitted Yes [ 10763 ]
        Mark Thomas made changes -
        Workflow jira [ 12713958 ] Default workflow, editable Closed status [ 12753687 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Benjamin Bentmann made changes -
        Fix Version/s 2.0.x [ 13141 ]
        Assignee Benjamin Bentmann [ bentmann ]
        Fix Version/s 2.0.11 [ 14118 ]
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.1.0-M2 [ 14587 ]
        Fix Version/s 3.0-alpha-1 [ 13143 ]
        Hide
        Benjamin Bentmann added a comment -

        Fixed in r720042, r720043 and r720045.

        Show
        Benjamin Bentmann added a comment - Fixed in r720042 , r720043 and r720045 .
        Brett Porter made changes -
        Field Original Value New Value
        Fix Version/s 2.0.x [ 13141 ]
        Hide
        Siveton Vincent added a comment -

        Sounds good to me. Go ahead!

        Show
        Siveton Vincent added a comment - Sounds good to me. Go ahead!
        Benjamin Bentmann created issue -

          People

          • Assignee:
            Benjamin Bentmann
            Reporter:
            Benjamin Bentmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development