[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: .class files in project resources
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Jan 23 17:13:44 EST 2008
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#4122825
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122825
More information about the jboss-dev-forums
mailing list