Eclipse – how to exclude a source package when deploying an app on JBoss within Eclipse

eclipsejboss

I'm developing a java web-based application and deploying it on JBoss 5.0 within Eclipse. I have some testing packages in my project which I'd like to avoid deploying them. Is there any means by which I can tell Eclipse to exclude these testing packages from the deploying war ?

I've tried with the run configuration but didn't find the way to exclude any package.

thanks!

Best Answer

I am not sure it is currently available (except for a custom xml script which would build a custom war to deploy).

I base this on JEE Status Meetings/2009-06-11:

Scenario: Create a source folder in a project that has test code (which should not be deployed) - need a way to exclude folders from deployment in component file

It does look like what you want, doesn't it?


The same page mentions:

"we are targeting these changes for WTP 3.2": no guarantee though that it will include that exact scenario, but if it makes WTP 3.2 (see plan) , it should be available for eclipse Helios 3.6 (late June 2010).
An intermediate milestone might include that feature before next year though.

Related Topic