title: Filter out resources from custom Test task in Gradle with goal of having one properties file for tests and a different one for production
body: <p>So I have setup a way to just run integration tests using this configuration:</p>
  
  <pre><code>test {
      exclude "**/*IntegrationTest*.class"
  }
  
  task integrationTest(type: Test, dependsOn: testClasses) {
      include "**/*IntegrationTest*.class"
  }
  
  check.dependsOn integrationTest
  </code></pre>
  
  <p>Works great.  But then for logging in my integration tests, I want to use a log4j.properties file from a specific directory instead of the one that is located in the <code>src/main/resoures</code> which is used for production.</p>
  
  <p>I've tried this but didn't work:</p>
  
  <pre><code>  integrationTest.classpath = files("$rootDir/test/src/main/resources/log4j.properties") + integrationTest.classpath
  </code></pre>
  
  <p>I also tried to just see if I could exclude the file, but could not find a way.  Tried this:</p>
  
  <pre><code>  processTestResources.exclude "**/*log4j.properties"
  </code></pre>
  
  <p>Any suggestions for including one properties file in production and another one for tests?</p>