title: How to customize unmanagedResourceDirectories and excludeFilter in Play Framework 2.2?
body: <p>I'm trying to integrate MyBatis with Play Framework 2.2 according to the <a href="http://www.inoio.de/blog/2013/02/07/integrating-mybatis-guice-play2/" rel="nofollow">guide</a>.
  This guide is written for Play v2.1.x that uses <code>project/Build.scala</code> instead of <code>build.sbt</code>.</p>
  
  <p>How can I add mapper xml files to classpath in this case?</p>
  
  <p>Excerpt from the configuration used in article below:</p>
  
  <pre><code>val main = play.Project(appName, appVersion, appDependencies).settings(
    // Add app folder as resource directory so that mapper xml files are in the classpath
    unmanagedResourceDirectories in Compile &lt;+= baseDirectory( _ / "app" ),
    // but filter out java and html files that would then also be copied to the classpath
    excludeFilter in Compile in unmanagedResources := "*.java" || "*.html"
  )
  </code></pre>