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