[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-150) add resource from Java package

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Sat Apr 17 11:35:49 EDT 2010


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

Aslak Knutsen resolved SHRINKWRAP-150.
--------------------------------------

    Resolution: Done


> add resource from Java package
> ------------------------------
>
>                 Key: SHRINKWRAP-150
>                 URL: https://jira.jboss.org/jira/browse/SHRINKWRAP-150
>             Project: ShrinkWrap
>          Issue Type: Feature Request
>          Components: api
>    Affects Versions: 1.0.0.alpha-7
>            Reporter: Dan Allen
>            Assignee: Aslak Knutsen
>            Priority: Minor
>             Fix For: 1.0.0-alpha-8
>
>
> Particularly in testing environments, resources are often organized under the same package as the class. However, when referring to a "qualified resource" (a resource located in a package), the package delimiter must be changed from the dot (.) to a forward slash (/). ShrinkWrap does not currently provide a convenient way to include such a resource, leaving the burden on the developer to do the conversion. Thus, we are starting to see cases like the following appear quite often in Arquillian tests:
> .addResource(FooTest.class.getPackage().getName().replaceAll("\\.", "/") + "/bar.xml");
> I would like to propose the following additions to ResourceContainer and ManifestContainer, respectively, to clean up this scenario:
> ResourceContainer#addResource(Package, String)
> ResourceContainer#addResource(Package, String, ArchivePath)
> ManifestContainer#addManifestResource(Package, String)
> ManifestContainer#addManifestResource(Package, String, ArchivePath)
> Please add any other parallel methods, as needed. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the shrinkwrap-issues mailing list