title: How to read mapping and response files from disk
body: <p>I deploy <code>WireMock</code> as a single WAR to my server. I followed the provided <a href="https://github.com/tomakehurst/wiremock/tree/master/sample-war" rel="nofollow noreferrer">sample-war project</a> to make my WAR works. That was very useful, so thanks for this example.</p>
  
  <p>The only one problem with my app is that WireMock reads mapping and configuration files from inside the WAR.
  The path of these files is configurable via the <code>WireMockFileSourceRoot</code> context-param in the <code>web.xml</code> file but it only works if the path points to a directory which locates in the WAR.</p>
  
  <p>I would like to keep mapping and response files in a separate folder on the disk.</p>
  
  <p>I have checked the source code and as I can see WireMock use <code>ServletContextFileSource</code> class to read mapping files from the servlet context. This class extends <code>AbstractFileSource</code>.</p>
  
  <p>I have found a good candidate <code>SingleRootFileSource</code> which also extend the same abstract class and it seems for me that this class can read mapping files from any directory from the disk BUT I have no idea how to set up WireMock to use this class instead of the default.</p>
  
  <p>Could you please put me to the right direction?</p>