[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-364) API Signature-inconsistency for .addAsManifestResource() and .addAsWebResource()
Tommy Tynjä (JIRA)
jira-events at lists.jboss.org
Sat Mar 17 16:44:47 EDT 2012
[ https://issues.jboss.org/browse/SHRINKWRAP-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677483#comment-12677483 ]
Tommy Tynjä edited comment on SHRINKWRAP-364 at 3/17/12 4:43 PM:
-----------------------------------------------------------------
I don't think this issue seems relevant since we have addAsWebInfResource methods on the WebContainer interface.
was (Author: tommysdk):
This issue doesn't seem relevant any more since we now have addAsWebInfResource methods on the WebContainer interface.
> API Signature-inconsistency for .addAsManifestResource() and .addAsWebResource()
> --------------------------------------------------------------------------------
>
> Key: SHRINKWRAP-364
> URL: https://issues.jboss.org/browse/SHRINKWRAP-364
> Project: ShrinkWrap
> Issue Type: Enhancement
> Components: api
> Affects Versions: 1.0.0-beta-6
> Environment: Windows 64bit, Netbeans 7.07, Glassfish 3.1.1, Maven 3.03, testng 6.3, arquillian resolver 1.1.0-alpha-1
> Reporter: Hanspeter Gisler
> Labels: API, ArchivePaths, Inconsistency
>
> If adding for example a beans.xml to a Java-Archives META-INF directory, I have to write:
> {code}
> ...
> .addAsManifestResource(beansFile, ArchivePaths.create("beans.xml"))
> ...
> {code}
> If I want to add the beans.xml to a Web-Archives WEB-INF directory, I have to write:
> {code}
> ...
> .addAsWebResource(beansFile, ArchivePaths.create("WEB-INF/beans.xml"))
> ...
> {code}
> This is error prone, as I have to remember, that addAsManifestResource puts the file into META-INF on its own, addAsWebResource on the otherhand puts it into root.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list