title: Execute one gradle task
body: <p>I've this two tasks:</p>
  
  <pre><code>war {
      webInf { from 'src/main/resources/WEB-INF' }
      manifest {
          attributes 'Implementation-Version': versioning.info.display
      }
  }
  
  task createDemoWar(type: War, dependsOn: classes) {
      archiveName "webapi-demo-${versioning.info.display}.war"
      destinationDir = file("$buildDir/dist")
      copy {
          from 'scopes'
          include 'configuration.demo.properties'
          into 'src/main/resources/'
      }
  }
  
  task createDevelopmentWar(type: War, dependsOn: classes) {
      archiveName "webapi-dev-${versioning.info.display}.war"
      destinationDir = file("$buildDir/dist")
      copy {
          from 'scopes/'
          include 'configuration.development.properties'
          into 'src/main/resources/'
      }
  }
  </code></pre>
  
  <p>Both tasks are trying to copy a property file from<code>scopes</code> folder to <code>src/main/resources/</code> folder.</p>
  
  <p>I only run one task, however two files are copied in <code>src/main/resources/</code> (<code>configuration.demo.properties</code> and <code>configuration.development,properties</code>.</p>
  
  <p>Any ideas?</p>