How do you make your source tree Eclipse/JUnit friendly?
I've never had a problem getting builds and unit tests to work with Ant. However, unit tests run faster in an IDE, so I'm trying to refactor some code to allow for testing in the IDE. My current directory structure looks like this:
-- project - web - WEB-INF - classes
I need both "WEB-INF" and "WEB-INF/classes" in my classpath. There's XML files under WEB-INF for Spring and Commons Validator, and there's a log4j.xml under WEB-INF/classes for log4j. These files are all in their natural locations as far as all the projects I've seen. However, Eclipse won't allow me to nest classpaths - so it's virtually impossible (as far as I know) to add both directories to my classpath. Any ideas how to workaround this Eclipse "feature" are appreciated.
For those "IDEA is better" folks - I agree. IDEA allows me to add web, web/WEB-INF and web/WEB-INF/classes to my classpath with no issues.
Posted by Thomas WOLF on June 02, 2004 at 07:40 AM MDT #
Posted by Stephan Schmidt on June 02, 2004 at 10:38 AM MDT #
I'm not sure if that will solve everything you need, but hopefully it helps you have nested classpaths using your source folders.
Posted by Tim on June 02, 2004 at 03:49 PM MDT #
Thanks again - you da man! ;-)
Posted by Matt Raible on June 02, 2004 at 04:11 PM MDT #
Posted by Steven Citron-Pousty on June 02, 2004 at 09:22 PM MDT #
Posted by Matt Raible on June 02, 2004 at 10:08 PM MDT #