Wednesday June 02, 2004
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 in Java
at Jun 02 2004, 12:46:10 AM MDT
6 Comments
Search This Site
Recent Entries
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
- Core Animation with Bill Dudney
Posted by Thomas WOLF on June 02, 2004 at 01:40 AM MDT #
Posted by Stephan Schmidt on June 02, 2004 at 04: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 09:49 AM MDT #
Thanks again - you da man! ;-)
Posted by Matt Raible on June 02, 2004 at 10:11 AM MDT #
Posted by Steven Citron-Pousty on June 02, 2004 at 03:22 PM MDT #
Posted by Matt Raible on June 02, 2004 at 04:08 PM MDT #