Our development effort is using Spring and Eclipse and would like to use Spring-IDE to verify the Spring configuration files that we build. We prefer to load Spring configuration files from the Java classpath, instead of from an absolute location. This makes it very easy to define a set of beans in one Eclipse project and use them from other projects. It also makes it easy to define testing-specific configurations in the unit test directory (src/unit) that modify the standard definitions (in src/java). We access our configuration files like this:
Unfortunately, Spring-IDE 1.2 only supports relative file paths to locate imported configuration files, so when I load up our configuration files (spread across many source directories and projects), most of them are "broken" even though they work fine.
ClassPathResource resource = new ClassPathResource("application-config.xml");
XmlBeanFactory factory = new XmlBeanFactory(resource);
How difficult would it be to support ClassPathResources in addition to FileResources?