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

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Thu Apr 7 20:21:33 EDT 2011


     [ https://issues.jboss.org/browse/SHRINKWRAP-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Rubinger resolved SHRINKWRAP-235.
----------------------------------------

    Fix Version/s: 1.0.0-alpha-13
       Resolution: Done


Upstream:

https://github.com/shrinkwrap/shrinkwrap/commit/3117930134abd282f4784ae1019961c00e62170a
https://github.com/shrinkwrap/shrinkwrap/commit/37420fd2b936bdcd51d1a2e6e017dec8b7275707
https://github.com/shrinkwrap/shrinkwrap/commit/cac9ad79720a68c72148dba2d14ad1cc7a68c536

> Add writeTo 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
>            Assignee: Tommy Tynjä
>            Priority: Minor
>             Fix For: 1.0.0-alpha-13
>
>
> 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().
> UPDATE: See comment about writeTo() proposal. 

--
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