title: Gradle 1.2: Exclude directory under resources sourceSets
body: <p>I have development related directory <code>src/main/resources/certs/test</code> which is needed for one external library. This has some cert files which are not needed in production build.</p>
  
  <p>At the moment I exclude everything under that directory with following block in <code>build.gradle</code>:</p>
  
  <pre><code>sourceSets {
      main {
          resources {
              exclude '**/test/*'
          }
      }
  }
  </code></pre>
  
  <p>This does it job well, but leaves ugly empty directory <code>test</code> lying there. What are my options to not include this directory in final war?</p>
  
  <p>I've tried excluding <code>'**/test'</code>, but it doesn't work at all.</p>
  
  <p>I use war plugin and Gradle 1.2</p>