title: How to access file in the static resources(WEB-INF) folder from the referencing java project?
body: <p>I have a web application, that contains a configuration xml file for one of my application services that is exposed as spring bean.
  Also I have a standalone java application(which references my web app project from its pom.xml) in the same workspace, that runs tests using Spring TestContext framework and one of the tests checks the configuration of that XML file.</p>
  
  <p>However I have a problem with accessing this xml file from the standalone app:</p>
  
  <p>Before setting-up the test, in my previous configuration, the file was accessed through ServletContext and was located in <strong>WEB-INF/</strong> folder. However, to make it accessable from the test project I had to move it to <strong>source/</strong> folder and load it with getClassLoader().getResourceAsStream() method instead that of ServletContext. But it makes editing the file cumbersome because every time the app has to be redeployed.</p>
  
  <p>Is it possible to keep the file in <em>WEB-INF/</em> folder but load it from the referencing project during the test-runs?</p>
  
  <p>P.S. Currently it's an STS project with Tomcat server.</p>