Too bad no one ever answered this question because I'm finding myself in the same boat.
At the current moment, I use a technique borrowed from the JGuru
Ant FAQ. I opted for "-prod"/"-dev" in the filename rather than as separate directories. I only do it for one configuration file, a log4j config file, so it works even though it may not be the best solution.
http://www.jguru.com/faq/view.jsp?EID=535861 But now I'm finding myself needing different code implementation (same classes) for development/production environments and
that I'm not sure how to implement.
I would hate to support two types of
Java classes, -dev/-prod between environments. But in my limited experience, this seems like one of the obvious solutions. This is where I wish there was a pre-processor in Java so I could do things like #DEV or #PROD and have them excluded depending on the environment the code is going to be used in.
If anyone has feedback, I sure would appreciate it.