title: Gradle does not copy test resources to build
body: <p>I have a multi project gradle project (spring web), with the following layout:</p>
  
  <pre><code>springweb
   |    build.gradle
   |    settings.gradle
   |_____ services
   |         build.gradle
   |         src/main/java
   |         src/main/resources
   |         src/test/java
   |         src/test/resources
   |             create-data.sql
   |_____ web
   |         build.gradle
   |         src/main/java
   |         src/main/resources
   |         src/main/webapp
   |         src/test/java
   |         src/test/resources
  </code></pre>
  
  <p>When I try to execute the contents under src/test/resources (init.sql) </p>
  
  <pre><code>commandLine 'psql', '-h', 'localhost', '-d', 'junit', '--username', 'junit', '-f' , sourceSets['test'].output.resourcesDir.toString() + '/create-data.sql'
  </code></pre>
  
  <p>it failse because the resource is not available in the build directory:</p>
  
  <pre><code>/Users/me/dev/springweb/services/build/resources/test/create-data.sql: No such file or directory
  </code></pre>
  
  <p>below my root build.gradle:</p>
  
  <pre><code>ext {
      springSecurityGroup = 'org.springframework.security'
      springSecurityVersion = '3.1.4.RELEASE'
      springGroup = 'org.springframework'
      springVersion = '3.2.5.RELEASE'
      hibernateGroup = 'org.hibernate'
      hibernateVersion = '4.2.7.SP1'
  }
  
  subprojects {
      apply plugin: 'java'
      apply plugin: 'eclipse'
      sourceSets.all{
          println output.classesDir
      }
  
      repositories {
          mavenCentral()
      }
  }
  </code></pre>
  
  <p>and the 'services' build.gradle:</p>
  
  <pre><code>task createDb (type:Exec) { 
       println sourceSets['test'].output.resourcesDir.toString()
       commandLine 'psql', '-h', 'localhost', '-d', 'junit', '--username', 'junit', '-f' ,'/Users/me/dev/sip/sip/sip04/src/main/resources/create-table.sql'
  }
  task fillDb (type:Exec, dependsOn: 'createDb') {
       commandLine 'psql', '-h', 'localhost', '-d', 'junit', '--username', 'junit', '-f' , sourceSets['test'].output.resourcesDir.toString() + '/create-data.sql'
  }
  test.dependsOn fillDb
  
  dependencies {
      /* zipped */
  }
  
  /* Change context path (base url). otherwise defaults to name of project */
  </code></pre>
  
  <p>I execute it with gradle build:</p>
  
  <pre><code>gradle build
  /Users/me/dev/springweb/services/build/classes/main
  /Users/me/dev/springweb/services/build/classes/test
  /Users/me/dev/springweb/web/build/classes/main
  /Users/me/dev/springweb/web/build/classes/test
  /Users/me/dev/springweb/services/build/resources/test
  :services:compileJava UP-TO-DATE
  :services:processResources UP-TO-DATE
  :services:classes UP-TO-DATE
  :services:jar UP-TO-DATE
  :services:assemble UP-TO-DATE
  :services:createDb
  DROP TABLE
  DROP SEQUENCE
  zipped
  :services:fillDb/Users/me/dev/springweb/services/build/resources/test/create-data.sql: No such file or directory
  </code></pre>
  
  <p>From the output I learn that the sourceSets are as I expect, but that the test resources are not copied. What is wrong?</p>