[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-303) Add getAsType(Class<Archive<?>> archiveType, ArchivePath)

Andrew Rubinger (JIRA) jira-events at lists.jboss.org
Thu Aug 4 22:08:37 EDT 2011


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

Andrew Rubinger resolved SHRINKWRAP-303.
----------------------------------------

    Fix Version/s: 1.0.0-beta-6
       Resolution: Done


Upstream: https://github.com/shrinkwrap/shrinkwrap/commit/abb937f47b7a8ec0e5691b6ad263ff6868f1f7b2
https://github.com/shrinkwrap/shrinkwrap/commit/1205ff989d8bf3d2465464a6d34835c312475f5b

> Add getAsType(Class<Archive<?>> archiveType, ArchivePath)
> ---------------------------------------------------------
>
>                 Key: SHRINKWRAP-303
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-303
>             Project: ShrinkWrap
>          Issue Type: Task
>            Reporter: Andrew Rubinger
>            Assignee: Davide D'Alto
>             Fix For: 1.0.0-beta-6
>
>
> We shouldn't require users to specify an ArchiveFormat for Archive.getAsType.  This, in the large majority of cases, can be inferred from the Archive type passed in (for instance, WebArchive.class generally means ArchiveFormat.ZIP).
> Add to the META-INF/services files for each archive type the default archive format, and use this in a getAsType(Class<Archive<?>> archiveType, ArchivePath path) method to delegate to the already in-place getAsType(Class<Archive<?>> archiveType, ArchivePath path, ArchiveFormat format)

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