title: Gradle - Use copy task to copy a file from outside project
body: <p>I have two separate gradle projects in the following structure. I want to write a task to move the build jar from projectA to projectB's lib folder.</p>
  
  <p>projectA -> c:/User/someUser/dev/projectA</p>
  
  <p>projectB -> c:/User/someUser/dev/projectB</p>
  
  <p>In projectA's build script, I have the following to move the generated jar from projectA's build/lib folder to projectB's lib folder.</p>
  
  <pre><code>task deployJar(type: Copy) {
      from('build/libs/')
      into('C:/Users/someUser/dev/projectB/libs')
      include('*.jar')
  }
  </code></pre>
  
  <p>I'm using absolute path but it is not working. I was hoping if someone can point out what I am doing wrong. </p>
  
  <p>Thanks</p>