title: gradle - copy file after its generation
body: <p><BR/>
  I try to build jar and after that copy it to another folder.</p>
  
  <pre><code>task createJar(type: Jar) {
      archiveName = "GradleJarProject.jar"
      manifest {
          attributes 'Implementation-Title': 'Gradle Jar File Example',  
              'Implementation-Version': version,
              'Main-Class': 'me.test.Test'
      }
      baseName = project.name
      from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
      with jar
  
  }
  
  task copyJarToBin {
      copy {
          from 'build/libs/GradleJarProject.jar'
          into "d:/tmp"
      }
  }
  
  task buildApp (dependsOn: [clean, createJar, copyJarToBin])
  </code></pre>
  
  <p>But I can't figure out one problem.
  copyJarToBin task try to copy old jar. If I delete /build folder in the project and run buildApp() task, task createJar() will generate .jar file, but copyJarToBin() won't find that .jar file.</p>
  
  <p>Could you help me?<BR/>
  Thanks.</p>