I have a basic web application (dynamic web project in eclipse) with an associated EAR project. I am trying to make sure my test junit code is not included in the EAR file for deployment.
In my web project, I have a source folder called "src" and one called "test". I need to save .class files from the "test" source folder OUT from EAR when I export it using eclipse.
I know this is trivial using ant, but it seems impossible to use eclipse .. right click on the project and export the ear file. test classes are always included.
If I manually edit the .setting / org.eclipse.wst.common.component.xml file to remove the tag associated with the test folder, it works, but if some other developers change anything related to the assembly path, it is restored. ..
I missed something obvious .. I searched googled like crazy but to no avail .. checked the eclipse docs and I'm at a loss.
source
share