I guess this is just the behavior of source directories in a java project. To get
something close to what I was looking for, I had to add source directories for each
classpath location in the ear and exclude these from the src/resources/tests dir:
| <classpathentry kind="src"
output="target/deploy/testear1.ear/war1.war/WEB-INF/classes"
path="src/resources/tests/deploy/testear1.ear/war1.war/WEB-INF/classes"/>
| <classpathentry kind="src"
output="target/deploy/testear1.ear/lib/jar1.jar"
path="src/resources/tests/deploy/testear1.ear/lib/jar1.jar"/>
| <classpathentry kind="src"
output="target/deploy/testear1.ear/ejb1.jar"
path="src/resources/tests/deploy/testear1.ear/ejb1.jar"/>
| <classpathentry excluding="deploy/**" kind="src"
output="target/tests-classes" path="src/resources/tests"/>
|
This isn't perfect because non-classpath items like META-INF contents are not copied.
Maybe we need to leave this as content in the src/tests/resources, and have an ant builder
generate the unpacked/packed artifacts in a classpath dir.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122825#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...