-
Enhancement
-
Resolution: Won't Do
-
Major
-
None
-
1.0.0-beta-6
If adding for example a beans.xml to a Java-Archives META-INF directory, I have to write:
...
.addAsManifestResource(beansFile, ArchivePaths.create("beans.xml"))
...
If I want to add the beans.xml to a Web-Archives WEB-INF directory, I have to write:
...
.addAsWebResource(beansFile, ArchivePaths.create("WEB-INF/beans.xml"))
...
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.