[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-235) Add print methods to Archive

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Tue Mar 15 08:14:47 EDT 2011


    [ https://issues.jboss.org/browse/SHRINKWRAP-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588007#comment-12588007 ] 

Andrew Rubinger commented on SHRINKWRAP-235:
--------------------------------------------

Laird: You mean:

http://docs.jboss.org/shrinkwrap/1.0.0-alpha-12/org/jboss/shrinkwrap/api/Archive.html#toString(org.jboss.shrinkwrap.api.formatter.Formatter)

?

> Add print methods to Archive
> ----------------------------
>
>                 Key: SHRINKWRAP-235
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-235
>             Project: ShrinkWrap
>          Issue Type: Feature Request
>          Components: api, impl-base
>    Affects Versions: 1.0.0-alpha-11
>            Reporter: Dan Allen
>            Priority: Minor
>
> An extremely common use case for the "toString" methods on Archive are to print the contents of the Archive to stdout.
> System.out.println(archive.toString(true));
> Having to wrap the call in System.out.println is really annoying (even with editor shortcuts). ShrinkWrap should provide parallel print methods, that print to stdout (or perhaps to an optional stream argument).
> archive.print()
> archive.print(true)
> archive.print(Formatter)
> * parallel methods that accept a stream if warranted
> * I'd also settle for printArchive()
> This feature is consistent with the ever popular Exception#printStackTrace().
>  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list