Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-3544

Beautify debug output for mojo parameters of type array

    Details

    • Type: Improvement Improvement
    • Status: Closed 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
    • Complexity:
      Intermediate
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      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

        Hide
        Vincent Siveton added a comment -

        Sounds good to me. Go ahead!

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

        Fixed in r720042, r720043 and r720045.

        Show
        Benjamin Bentmann added a comment - Fixed in r720042 , r720043 and r720045 .

          People

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

            Dates

            • Created:
              Updated:
              Resolved: