Type: Feature Request
Status: Closed (View Workflow)
Affects Version/s: 1.0.0-alpha-11
Fix Version/s: 1.0.0-alpha-13
Similar Issues:Show 10 results
SHRINKWRAP-298 Add "addAsLibraries(Archive<?>... archives)" to LibraryContainer SHRINKWRAP-303 Add getAsType(Class<Archive<?>> archiveType, ArchivePath) SHRINKWRAP-440 Create a CDI Archive SHRINKWRAP-304 Add option for omitting archive extension from exploded directory name SHRINKWRAP-91 Support for Add Filters on 'multi' add methods SHRINKWRAP-23 Create Archive type extensions SHRINKWRAP-241 remap targets for WebArchive add* methods SHRINKWRAP-475 Fix docs in Archive API SHRINKWRAP-402 Support method for checking what type of Archive this is SHRINKWRAP-240 addServiceProvider should add class to archive
An extremely common use case for the "toString" methods on Archive are to print the contents of the Archive to stdout.
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).
- 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.