Created
April 24, 2012 20:05
-
-
Save aslakknutsen/2483202 to your computer and use it in GitHub Desktop.
Arquillian JRebel Extension - File mapping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<application> | |
<classpath> | |
<dir name="/home/aslak/project/target/classes"> | |
<include name="org/acme/B.class" /> | |
<include name="org/acme/A.class" /> | |
</dir> | |
<dir name="/home/aslak/other_project/target/classes"> | |
<include name="org/acme/C.class" /> | |
<include name="org/acme/D.class" /> | |
</dir> | |
<dir name="/tmp/dynamically/created/my.war" /> <!-- location of dynamically created assets, beans.xml --> | |
<classpath> | |
<web> | |
<dir name="/home/aslak/project/src/main/webapp"> | |
<include name="index.html" /> | |
</dir> | |
</web> | |
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ | |
org/ | |
acme/ | |
A.class | |
B.class | |
beans.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ShrinkWrap.create(WebArchive.class) | |
.addClasses(A.class, B.class) | |
.addAsWebInfResource( | |
Descriptors.create(BeansDescriptor.class).alternative(A.class)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In archive:
/WEB-INF/web.xml
/index.html
Resolved to:
/home/project/src/main/webapp/WEB-INF/web.xml
/home/project/src/main/webapp/index.html
Common root: /home/project/src/main/webapp
rebel.xml: